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