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