Level 9 : What will be the output of the following code


def abc(a, b):
   return b if a == 0 else abc(b % a, a)
print(abc(20, 50))

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