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


print(type(range(2)))

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