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


print(type(range(2)))

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