Jul-17-2017, 03:11 PM
my question here
build a list (add_animals) using a while loop, stop adding when an empty string is entered
but I am not getting the proper output.
build a list (add_animals) using a while loop, stop adding when an empty string is entered
1 2 3 4 5 |
add_animals = [] user_input = input ( "Enter animals names:" ) while user_input! = " " : add_animals.append(user_input) print (add_animals) |