0

what is the purpose of * in code

Подскажите пожалуйста, какое назначение " * " в коде? list = ["(", 1, 2] index = 2 list.insert(index, ",") print(*list, end=')')

21st Dec 2020, 5:35 AM
Pavel O
Pavel O - avatar
4 Respuestas
+ 1
I think that may be for unpacking https://code.sololearn.com/cWzG20S9Enlw/?ref=app
21st Dec 2020, 5:44 AM
Slick
Slick - avatar
21st Dec 2020, 6:53 AM
Pavel O
Pavel O - avatar
0
no, because you can do that just about anywhere. You cant unpack everything everywhere
21st Dec 2020, 7:03 AM
Slick
Slick - avatar
0
Thank you for the answer.
21st Dec 2020, 7:15 AM
Pavel O
Pavel O - avatar