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