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