0
what is the purpose of * in code
Подскажите пожалуйста, какое назначение " * " в коде? list = ["(", 1, 2] index = 2 list.insert(index, ",") print(*list, end=')')
4 Answers
+ 1
I think that may be for unpacking
https://code.sololearn.com/cWzG20S9Enlw/?ref=app
0
Is it same?
https://code.sololearn.com/ceP3CmuXr3qH/?ref=app
0
no, because you can do that just about anywhere. You cant unpack everything everywhere
0
Thank you for the answer.