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