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