Level 5 : What will be the output of the following Python function?


What will be the output of the following Python function?

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