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