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