Level 1 : What is the output of the following code?


print(type(range(2)))

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