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