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