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