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