Level 1 : What will be the datatype of the var in the below code snippet?


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

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