Level 1 : What will be the output of the following code?


def fun(a=12,b=12):
    print(a//9)
    return(a*b)
fun(a=9,b=2)

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