Level 1 : What will be the output of this code?


def func(*args):
    print(args)

func(1, 2, 3)

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