Level 6 : What will be printed when the following code executes?


def test(a, b = 5):
    print(a, b)

test(-3)

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