You can do this using the splat operator:
some_func(*params)
This causes the function to receive each list item as a separate parameter. There’s a description here: http://docs.python.org/tutorial/controlflow.html#unpacking-argument-lists
More Related Contents:
- How to add numbers inside a variable? [closed]
- Is there a way to ordinate numbers in a list?
- Remove all the elements that occur in one list from another
- Copying nested lists in Python
- Finding the average of a list
- Negative list index? [duplicate]
- Alphabet range in Python
- Python list confusion [duplicate]
- Joining pairs of elements of a list [duplicate]
- I want to exception handle ‘list index out of range.’
- Convert string to list. Python [string.split() acting weird]
- How do you split reading a large csv file into evenly-sized chunks in Python?
- How to convert nested list of lists into a list of tuples in python 3.3?
- Numpy individual element access slower than for lists
- list.extend and list comprehension [duplicate]
- Pairwise crossproduct in Python [duplicate]
- How to allow list append() method to return the new list
- Pythonic Circular List
- What’s the difference between plus and append in python for list manipulation? [duplicate]
- Assign multiple values of a list
- Deleting consonants from a string in Python
- Confused with python lists: are they or are they not iterators? [duplicate]
- Use endswith with multiple extensions
- Why does creating a list from a list make it larger?
- Python Accessing Values in A List of Dictionaries
- How to remove an element from a nested list?
- Iterating through list of list
- Sort python list by function
- How do I add together integers in a list (sum a list of numbers) in python?
- How can I print sublists of a certain length? [closed]