Level 10 : 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 | 1736+ Python FAQs | Share
while-else-loop | turtle | type-conversion | syntax-error | integer | built-in-function | built-in | sum() | application | exception-handling | objects | tuple-unpacking | async | mutable | match | heap-memory | immutability | command-line-parsing | arithmetic-expression | typeerror | file | function-argument | generators | installation | exception | __init_subclass__ | update | python_version | comprehension | type_conversion | escape-operator | type-conversion | compute | sys | staticmethod | list-vs-tuple | bitwise-operator | feature | assignment-operator | regex | oop | formal-and-actual-parameter | name-mangling | mysql | multithreading | overflow | logical-operator | syntax-error | pseudocode | random-function | decorator | list-comprehension | datetime | min-max-function | operators | access-modifier | boolean-and-non-boolean | pandas | file-handling | data-type | lambda-function | array | math-copysign | print-statement | object-attribute | split | operator-or | int | goto-function | touples | pickling-&-unpickling | round | tuple | syntaxerror | raise | control-flow | complex | mapping-function | complex-number | yield | logical-operation | iterator | global-keyword | inherit | asyncio-module | nested-loop | encoding | sorting | choice | functional-programming | namedtuple | file_handling | counter | filter-function | class-and-object | design-principle | decimal | numeric | swapping | join | id-function | control-statement | data-structure | counter-function | input-function | head-and-tail | iterable | condition | round-function | namespace | virtual-environment | descriptors | functions | built-in-function | expand-tab | generator | class-and-inheritance | assert | min-function | string-slicing | immutable-data-type | collections | list-indexing | __future__ | context-manager | shallow-copy | exception-handling | default-mutable-argument | string | floating-point-precision | method | binary-operation | lists | fabs-function | operand | lambdas | loop-control | center | threading | map-function | benefit | python | debugging | memory | identity-operator | indentation | dictionaries | import-method | asyncio | conversion | random | mathematics | for | global-variable | error-handling | copy | pep | binary | module | function-and-scope | operations | return-statement | magic-method | library | exponentiation | operator-overloading | python-django | keyword | with-statement | interpreter | string-formatting | print | python-repl | conditional-statement | sorted | data_structure | variable | list-operation | append | matplotlib | collection | syntax | while-and-for-loop | filter | parameter | range | multiple-inheritance | python-history | identifier | operator | indexing | attribute | destructor | string-concatenation | loop | regular-expression | boolean | version | else-statement | set | list-slicing | numpy | oops | odd-number | function | zip | data-structures | logical-operator | bitwise | statement | classes | identity-operator | expression | gil | constructor | basic | comment | input-function | class | error | frozenset | list-method | matrix | deep-copy | python-module | __all__-attribute | static-method | generators-in-python | inheritance | slice | enumerate() | set-operation | arithmetic-operation | string-method | polymorphism | zfill-function | global-variable | comparison | max-min | implementation | string-manipulation | mathematical-function | format | higher-order-function | encapsulation | package-management | docstring | version-check | precedence | conditional-statement | precedence-and-associativity | lambda | list-comprehension | string-formatting | postfix | while-loop | scientific-notation | file-handling | input | virtual-environment | memory-management | factorial-function | loops | def | invalid-list | datatype | thread | control-flow | list | string-method | string-slicing | list-mutation | operator-and | slicing | zip-function | recurssion | sys-module | call | methods | data-structure | string-iteration | data-type | math | class-and-instance-variable | dicts | stack | software-design | multiprocessing | rollback | recursion | matrix-list-comprehension | init | global | list-join | bitwise-operator | dictionary | sum-function ...