Question from the Python - Fundamentals test

Unpacking arguments in Python

Medium

Which technique is used in the following code ?

def f(animal, color):
	return f"This {animal} is {color}."
args = ["parrot", "red"]
sentence = f(*args)
sentence
>>> This parrot is red.
Author: ThéoStatus: PublishedQuestion passed 128 times
Edit
-1
Community Evaluations
developer avatar
Other
Pierre Chaumont
25/07/2024
Je ne vois pas l'utilité d'avoir le terme précis pour ce cas de figure. Surtout que le terme est "déballage de liste" (unpacking list)