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


print(type(range(2)))

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