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