Level 1 : What is the output for the code below?


for i in range(0):
   print(i)

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