Level 1 : what will be the output of the following code?


def fun():
    for x in range(22,23,24):
    print(x)
fun()

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