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 71 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!