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