Level 10 : What will be the datatype of the var?


var = 10
print(type(var))
var = "Hello"
print(type(var))

Author: KaivalyaG | Tags: datatype | 1859+ Python FAQs | Share
sum() | logical-operation | matplotlib | raise-statement | logical-operator | multiple-inheritance | mapping-function | multiprocessing | membership-operators-(in,-not-in) | numeric | postfix | odd-number | method-overloading | python | list-mutation | reading-and-writing-large-files-efficiently | magic-method | mathematical-function | list | arithmetic-expression | asyncio-module | list-method | call | math-copysign | update | enumerate() | string-concatenation | invalid-list | sum-function | random-function | global-variable | string-methods | booleans | boolean-masking | handling-missing-values-(fillna,-dropna) | head-and-tail | comprehension | context-manager | functional-programming | single-inheritance | generator | installation | string | conversion | iterator | memory | error-handling | syntax | generators | join | built-in-function | sys-module | memory-management | indexing:-loc-vs-iloc | file-handling | reading:-read(),-readline(),-readlines() | module | condition | matrix | escape-operator | boolean | comparison | identity-operators-(is,-is-not) | string-formatting | parsing-with-strptime | sys | append | range | list,-set,-and-dictionary-comprehensions | package-management | syntax-error | set | lambda-functions | __init_subclass__ | else-statement | sorting-and-ranking | __future__ | filtering-and-indexing | regular-expressions | syntax-error | managing-directories-with-os-and-shutil | interpreter | function | strings | staticmethod | precedence-and-associativity | math | scientific-notation | iterators | floating-point-precision | factorial-function | indexing | exception-handling | pseudocode | deep-copy | sorting | keyword | swapping | floats | loops | __all__-attribute | immutable-data-type | max-min | command-line-parsing | mathematics | arithmetic-operation | else | slice | datatype | introduction-to-threads | application | async | string-slicing | decimal | rollback | oops | set-operation | list-comprehension | def | global-variable | functional-programming | indentation | integers | functions | logical-operator | formatting-with-strftime | sorted | list-operation | collection | loop | stack | data-type | error-handling | string-method | min-max-function | python-operators | string-method | encoding | pass | methods | center | key-value-pairs | mutable | list-slicing | recursion | function-argument | advanced-file-operations | test-discovery | frozenset | nested-loop | creating-and-starting-threads | int | string-formatting | classes | split | feature | exponentiation | syntaxerror | for | collections | software-design | list-indexing | return-statement | filter-function | operator-and | benefit | error | bitwise-operator | recurssion | binary | dicts | integer | overflow | python_version | global-keyword | static-method | gil | slicing | string-iteration | variable | counter-function | string-slicing | touples | statement | identifier | comment | numpy | shallow-copy | multiple-except-blocks | pickling--unpickling | anchors-(^,-$) | data-structure | expand-tab | while-loop | arbitrary-arguments-(*args,-**kwargs) | basic | init | sets | formal-and-actual-parameter | copy | design-principle | regex | debugging | round-function | zfill-function | attribute | virtual-environment | inherit | inheritance | class-decorators | map-function | default-mutable-argument | heap-memory | list-vs-tuple | matrix-list-comprehension | string-manipulation | bitwise-operator | precedence | import-method | file_handling | exception | round | namedtuple | array | name-mangling | writing:-write(),-writelines() | conditional-statements | min-function | class | using-the-threading-module | type-conversion | boolean-and-non-boolean | python-history | unit-testing | regular-expression | object-attribute | walking-through-directories-using-os.walk() | docstring | tuple | input-function | zip-function | control-statement | method | with-statement | assert | lists | goto-function | multiple-inheritance | function-and-scope | why-use-multiprocessing-over-threading?-(gil) | list-methods-and-slicing | operator-overloading | built-in-function | bitwise | list-comprehension | using-os-and-pathlib-modules | working-with-temporary-files-using-tempfile | conditional-statement | turtle | lambda | aggregating-data-with-functools.reduce() | virtual-environment | class-and-instance-variable | list-join | joining-and-merging-dataframes | print | quantifiers-(*,-+,-?,-{}) | identity-operator | class-and-object | built-in-modules | choice | type_conversion | multithreading | implementation | while-and-for-loop | binary-operation | assignment-operators | version | mysql | while-loops | literal-characters-and-special-characters | built-in | class-and-inheritance | access-modifier | higher-order-function | asyncio | generators-in-python | loop-control-statements | assignment-operator | lambdas | loop-control | dictionary-comprehensions | tuples | overriding-methods | datetime.date,-datetime.time,-datetime.datetime | logical-operators | complex-number | library | python-syntax-and-structure | namespace | python-django | decorator | list-comprehensions | introduction-to-python | operators | input-function | complex | data-type | using-else-and-finally | exception-handling | filter | using-assertions-(assertequal,-assertraises) | tuple-unpacking | working-with-dates-and-times | time-series-with-pandas | parameter | identity-operator | file | yield | objects | raise | lambda-function | encapsulation | destructor | working-with-file-paths | zip | random | descriptors | operator-or | pep | working-with-binary-files-(rb,-wb) | control-flow | expression | defining-functions | operator | python-module | input | id-function | difference-between-threads-and-processes | creating-custom-modules | threading | intering | print-statement | while-else-loop | data-structures | operand | compute | constructor | using-yield-in-functions | using-map()-for-transformations | tuple-methods | reading-and-writing-files | fabs-function | dictionary-methods | introduction-to-multiprocessing | using-join()-and-is_alive()-methods | operations | iterable | control-flow | type-conversion-and-casting | thread-safe-data-structures-(queue.queue) | format | file-handling | thread-synchronization | directory-operations | counter | thread | global | dataframe-and-series-objects | oop | version-check | polymorphism | immutability | data-structures-in-python | data_structure | data-structure | opening-files-(open()) | pandas | typeerror | datetime | type-conversion | dictionary | conditional-statement | using-lists-as-stacks | data-type-conversions | data-types | dictionaries | python-repl | match | default-arguments ...