Level 10 : 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 | 1736+ Python FAQs | Share
return-statement | loops | iterable | numpy | oops | functions | boolean-and-non-boolean | join | recursion | swapping | def | functional-programming | function-argument | polymorphism | sys-module | complex | __future__ | print-statement | lambda-function | zip-function | array | input-function | choice | string-manipulation | global-keyword | syntax-error | random | immutability | command-line-parsing | turtle | operators | sum() | update | virtual-environment | exception | software-design | binary-operation | bitwise-operator | identity-operator | mathematical-function | lambda | operator-or | numeric | enumerate() | generators-in-python | math-copysign | boolean | version | min-max-function | integer | higher-order-function | counter | benefit | collections | variable | interpreter | loop | while-else-loop | string-concatenation | while-loop | comment | virtual-environment | conditional-statement | module | dicts | touples | with-statement | range | keyword | goto-function | arithmetic-operation | installation | decimal | python-repl | function | syntax | sorted | bitwise | file-handling | operand | identifier | type_conversion | implementation | magic-method | asyncio-module | postfix | namespace | call | regular-expression | exception-handling | context-manager | string-slicing | format | regex | head-and-tail | comparison | class-and-instance-variable | data-structures | list-join | data_structure | access-modifier | pep | tuple | inheritance | type-conversion | counter-function | sum-function | string-slicing | collection | iterator | string-method | list-vs-tuple | parameter | classes | precedence | assert | floating-point-precision | datatype | string-formatting | immutable-data-type | tuple-unpacking | zip | lambdas | __init_subclass__ | encapsulation | max-min | design-principle | expression | dictionaries | odd-number | attribute | for | basic | python | indentation | method | python_version | application | built-in-function | match | raise | async | generator | constructor | function-and-scope | formal-and-actual-parameter | yield | math | shallow-copy | slicing | operator-overloading | default-mutable-argument | list-indexing | syntaxerror | input | data-type | deep-copy | mathematics | destructor | complex-number | round-function | operator-and | data-structure | list-operation | conversion | string-method | expand-tab | type-conversion | binary | oop | operations | nested-loop | string-iteration | pandas | matplotlib | global-variable | mapping-function | fabs-function | string-formatting | random-function | list-method | descriptors | __all__-attribute | threading | logical-operator | init | comprehension | split | syntax-error | library | inherit | python-module | mysql | methods | filter | control-flow | import-method | string | file_handling | indexing | memory | gil | frozenset | thread | overflow | set | pickling-&-unpickling | mutable | invalid-list | data-structure | id-function | slice | version-check | feature | staticmethod | rollback | asyncio | center | built-in | logical-operation | list-slicing | python-django | input-function | compute | class | name-mangling | matrix | list-comprehension | precedence-and-associativity | file | namedtuple | file-handling | sys | statement | exponentiation | round | generators | built-in-function | min-function | matrix-list-comprehension | error-handling | arithmetic-expression | logical-operator | static-method | memory-management | operator | sorting | int | global | set-operation | recurssion | print | stack | copy | list | bitwise-operator | lists | class-and-object | map-function | exception-handling | encoding | decorator | typeerror | error | list-comprehension | filter-function | multiprocessing | multithreading | loop-control | object-attribute | escape-operator | conditional-statement | package-management | global-variable | pseudocode | zfill-function | identity-operator | multiple-inheritance | control-statement | python-history | assignment-operator | class-and-inheritance | factorial-function | control-flow | data-type | datetime | list-mutation | append | docstring | heap-memory | debugging | else-statement | objects | while-and-for-loop | dictionary | condition | scientific-notation ...