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