Basically I need to write a program that takes input from a user and stores it in a list over and again until the word "end" is passed.
Sample Input
Spanish
dog
bowl
end
Sample Output
['spanish', 'dog', 'bowl']
This is what I have so far:
a = []
index = 0
i = 1
while i != 0:
s = raw_input()
if s == "end":
i = 0
else:
a[index] = s
index = index + 1
print (a)
Note that as part of the assignment, a while loop must be used.