why * used before declaring a variable in python [duplicate]
问题 This question already has answers here : Star * operator on left vs right side of an assignment statement (1 answer) Please explain the *elements,=iterable construct [duplicate] (1 answer) Closed 3 years ago . I just started to learn python. I was following an example where they have used * before declaring a variable. My question is that what is the purpose of using this. Example, I am following for i in range(n): name, *l = input().split() s = list(map(float, l)) a[name] = s After printing