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