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