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