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