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