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