I write below code, the first print
line works fine, but the next one to assign the same to variable y
and print it. but it doesn’t work.
print(*range(1,6))
y = *range(1,6)
print(6)
How to understand this asterisks unpack statement? If I want to assign it to a variable, how to modify above code?