Level 1 : What will be the output of the following python code


def printno(upper):
    if(upper>0):
        printno(upper-1)
        print(upper)
upper=int(input("Enter upper limit: "))
printno(upper)

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