Friday, 22 November 2019

43 #My Zoo. Adding Values to a list

#My Zoo. Adding Values to a list

animals = []
while True:
    print ('Name of animals you have. Type FFF to finish')
    newname=input()
    animals.append(newname)
 
    if newname == 'FFF':
        animals.remove(newname)
        print ('This is your list: ')
        print (animals)
        break