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