Hello and thanks for your time;
I am using *args to take various arguments, which creates a tuple. How do I 'unpack' a tuple into a list? The following code appends the list with a tuple.
grades = [] def add_grades(*args): grades.append(args): return grades print(add_grades(99,88,77)) I can do this using a for loop and iterating through the tuple, but looking to see if I can unpack directly.
list(args)?list.extend().