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