Here's the question you clicked on:
lopus
hi everybody i need help you. need modify a tuple. for example x=() i want add x=(1,2,3,4,5) for i in range(5): x=(i,)+x[i:] ???????
tuples are immutable so you need to completely recreate it to add a value like this: x=() for i in range(5): x=x+(i,)