Level 1 : How to get the type of the following variable?


a=1

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