Level 10 : What will be the datatype of the var?


var = 10
print(type(var))
var = "Hello"
print(type(var))

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