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