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