Level 9 : What will be the output of the func(y=5, x=3) call?


def func(x=3,y=5):
    x=x+y
    y+= 1
    print(x,y)
func(y=5,x=3)

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