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