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