I am trying to append numbers into a list already created when prompted for the number.
Here is the code I have so far.
x = [1, 2, 3, 4, 5]
y = raw_input("Enter a number: ")
for numbers in y:
if y > 5:
x.append(y)
print x
else:
print "List remains the same"
But, even if I type in 3, it still appends it to the list.