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