this seems like such a simple thing but i can't understand why this is happening.
x = list(input('>>> '))
y = x
for i in range(len(y)):
if y[i].isalpha():
y[i] = '_'
print(x,y)
for some reason the x list is changing from the user input into underscores when I only made the y variable change. I don't how this is working and I would apreciate if someone could explain this. sorry if i am just super stupid and and cannot see some clear thing lol. thanks in advance.