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