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