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