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


print(type(range(2)))

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