myfun(*some_tuple)
does exactly what you request. The *
operator simply unpacks the tuple (or any iterable) and passes them as the positional arguments to the function. Read more about unpacking arguments.
More Related Contents:
- How can I add tuples in a list? [closed]
- What’s the difference between lists and tuples?
- How does tuple comparison work in Python?
- What are “named tuples” in Python?
- Why is there no tuple comprehension in Python?
- How to extract the n-th elements from a list of tuples
- Subclassing tuple with multiple __init__ arguments
- Two variables in Python have same id, but not lists or tuples
- How to unzip a list of tuples into individual lists? [duplicate]
- How to sort a list with two keys but one in reverse order?
- Append to a list defined in a tuple – is it a bug? [duplicate]
- Split a string to even sized chunks
- Subtracting 2 lists in Python
- Why are python strings and tuples are made immutable?
- What is the inverse function of zip in python? [duplicate]
- python tuple to dict
- converting string to tuple
- How to flatten a tuple in python
- What does ** (double star/asterisk) and * (star/asterisk) do for parameters in Python?
- What do the * (star) and ** (double star) operators mean in a function call?
- How do I convert a tuple of tuples to a one-dimensional list using list comprehension? [duplicate]
- matplotlib 2d line line,=plot comma meaning
- How does str.startswith really work?
- Concatenate elements of a tuple in a list in python [duplicate]
- How to use ast.literal_eval in a pandas dataframe and handle exceptions
- Converting a csv file into a list of tuples with python
- In Python, what determines the order while iterating through kwargs?
- python tuple is immutable – so why can I add elements to it
- How can we force naming of parameters when calling a function?
- Converting string to tuple without splitting characters