Level 5 : What will be the output of the following Python code?


for i in range(0,2,-1):

    print("Hello")

Author: SandhyaR | Tags: loop | 1736+ Python FAQs | Share
objects | inheritance | expand-tab | magic-method | set-operation | filter-function | identity-operator | library | control-statement | syntax | operator-or | binary-operation | lambda | __init_subclass__ | asyncio | append | destructor | functional-programming | global-keyword | operations | list-operation | operators | data-type | collections | identity-operator | feature | logical-operation | while-else-loop | lists | mapping-function | global | input-function | sys-module | generators-in-python | multiple-inheritance | touples | round | bitwise-operator | oop | list-slicing | built-in | class-and-instance-variable | else-statement | static-method | basic | namedtuple | goto-function | function-argument | memory | package-management | debugging | thread | __all__-attribute | list-join | string-iteration | bitwise-operator | context-manager | pandas | multithreading | return-statement | def | string-manipulation | for | namespace | init | lambda-function | implementation | data-structure | generator | tuple | immutable-data-type | random-function | factorial-function | module | name-mangling | set | built-in-function | expression | filter | bitwise | raise | data_structure | print-statement | oops | string-slicing | call | input | global-variable | list-comprehension | syntaxerror | deep-copy | encapsulation | exception-handling | string | software-design | choice | decimal | access-modifier | map-function | iterator | sorted | application | attribute | __future__ | min-max-function | file_handling | memory-management | string-method | collection | list-comprehension | error-handling | statement | exponentiation | python_version | format | nested-loop | version | recursion | generators | matrix-list-comprehension | threading | comprehension | overflow | turtle | keyword | class-and-inheritance | import-method | exception | enumerate() | invalid-list | range | math-copysign | head-and-tail | control-flow | copy | rollback | list | list-mutation | async | logical-operator | class-and-object | id-function | type-conversion | loop-control | formal-and-actual-parameter | center | counter | binary | operand | variable | postfix | interpreter | arithmetic-expression | mathematics | default-mutable-argument | asyncio-module | parameter | python-repl | logical-operator | functions | floating-point-precision | with-statement | python-django | print | match | inherit | sum-function | recurssion | conditional-statement | compute | tuple-unpacking | staticmethod | string-concatenation | file-handling | file | python-module | min-function | zfill-function | zip-function | boolean | file-handling | scientific-notation | comment | string-method | yield | complex | indentation | odd-number | string-slicing | frozenset | split | condition | datetime | exception-handling | iterable | assert | data-structure | immutability | slice | design-principle | datatype | loop | indexing | python-history | data-type | virtual-environment | join | escape-operator | while-loop | counter-function | string-formatting | list-method | error | arithmetic-operation | mysql | dicts | version-check | syntax-error | conversion | fabs-function | max-min | round-function | stack | math | docstring | class | regex | while-and-for-loop | multiprocessing | python | constructor | gil | precedence | pep | higher-order-function | loops | dictionaries | sorting | update | data-structures | typeerror | heap-memory | shallow-copy | sum() | conditional-statement | decorator | comparison | operator | operator-and | global-variable | complex-number | encoding | function-and-scope | virtual-environment | lambdas | operator-overloading | regular-expression | matplotlib | installation | function | integer | int | pseudocode | matrix | mathematical-function | boolean-and-non-boolean | assignment-operator | string-formatting | swapping | identifier | sys | methods | mutable | type_conversion | numpy | built-in-function | syntax-error | method | type-conversion | pickling-&-unpickling | classes | zip | random | numeric | array | descriptors | benefit | object-attribute | precedence-and-associativity | dictionary | control-flow | list-vs-tuple | input-function | command-line-parsing | slicing | polymorphism | list-indexing ...