Level 10 : What will be the datatype of the var?


var = 10
print(type(var))
var = "Hello"
print(type(var))

Author: KaivalyaG | Tags: datatype | 1736+ Python FAQs | Share
zfill-function | assert | thread | loops | list-comprehension | version-check | python_version | statement | matrix | counter-function | gil | loop-control | sys | pseudocode | oop | command-line-parsing | binary-operation | filter | mysql | input | type_conversion | id-function | asyncio | asyncio-module | round-function | regex | syntax-error | decorator | control-statement | condition | descriptors | expression | string-manipulation | random | lambda | yield | version | function-argument | bitwise | __init_subclass__ | tuple-unpacking | floating-point-precision | encapsulation | datetime | lambdas | staticmethod | inheritance | comparison | round | bitwise-operator | threading | __future__ | functions | multithreading | tuple | for | set-operation | choice | higher-order-function | generators | operator | match | encoding | syntax-error | attribute | random-function | numpy | frozenset | iterable | built-in-function | error | min-max-function | assignment-operator | init | python | arithmetic-operation | multiprocessing | boolean-and-non-boolean | methods | data-type | sum-function | goto-function | indentation | string-method | generators-in-python | indexing | class | comprehension | global-variable | string-slicing | swapping | immutability | integer | print | software-design | regular-expression | sum() | string-iteration | mapping-function | string-concatenation | global-keyword | global | docstring | loop | control-flow | list-operation | context-manager | update | operator-or | lambda-function | logical-operator | virtual-environment | dictionary | magic-method | mathematical-function | fabs-function | global-variable | identity-operator | postfix | collection | objects | __all__-attribute | immutable-data-type | basic | precedence | import-method | numeric | collections | raise | built-in | typeerror | math-copysign | slice | application | type-conversion | while-loop | feature | int | list-indexing | classes | input-function | enumerate() | file-handling | expand-tab | counter | pep | class-and-inheritance | while-else-loop | call | error-handling | conditional-statement | matrix-list-comprehension | async | math | join | matplotlib | with-statement | implementation | print-statement | string | memory-management | namespace | polymorphism | input-function | operator-overloading | built-in-function | logical-operator | operations | destructor | compute | else-statement | functional-programming | generator | recurssion | multiple-inheritance | exception | exception-handling | operator-and | complex-number | map-function | parameter | list-comprehension | static-method | default-mutable-argument | package-management | sorting | heap-memory | split | center | oops | memory | keyword | conversion | list-vs-tuple | head-and-tail | mutable | binary | operand | scientific-notation | python-module | conditional-statement | data-structure | operators | string-formatting | name-mangling | datatype | file | escape-operator | overflow | python-repl | sorted | factorial-function | while-and-for-loop | max-min | object-attribute | dictionaries | installation | identifier | interpreter | arithmetic-expression | function-and-scope | string-slicing | inherit | pandas | min-function | rollback | lists | copy | precedence-and-associativity | library | array | decimal | invalid-list | list-method | module | file-handling | debugging | nested-loop | design-principle | class-and-instance-variable | filter-function | python-django | type-conversion | data-structures | return-statement | boolean | stack | function | set | odd-number | zip | exception-handling | variable | logical-operation | python-history | zip-function | access-modifier | identity-operator | string-method | constructor | control-flow | pickling-&-unpickling | iterator | virtual-environment | dicts | format | exponentiation | namedtuple | def | append | list-mutation | list-join | shallow-copy | data-structure | syntax | string-formatting | deep-copy | method | list | recursion | comment | data_structure | sys-module | mathematics | list-slicing | file_handling | class-and-object | syntaxerror | complex | bitwise-operator | formal-and-actual-parameter | touples | benefit | slicing | data-type | range | turtle ...