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