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


print(type(range(2)))

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