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