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