0

I have a parameter list which is just inputs separated by commas.

Now that I have a non-empty list, myList[], how do I turn the entries of L into a parameter list?

Example: if want

myList[0], myList[1], myList[2]..., myList[10]

How can I do that? Thank you! Is there anything similar to unpacking?

Newbie
  • 341
  • 1
  • 7
  • 17

1 Answers1

2

You can use unpacking with *.

f(*myList)
Delgan
  • 18,571
  • 11
  • 90
  • 141