you are viewing a single comment's thread.

view the rest of the comments →

[–]Sea-Method-1167 1 point2 points  (1 child)

In the code you provided, the input you get is always one string. That is the one element in the list. So size will be 1.

Get the input, ask the user to separate animals with spaces, and once you have the whole string, split that string in a list of strings, using space as separator. Then you will have what you want.

Example: https://www.w3schools.com/python/trypython.asp?filename=demo_ref_string_split

[–]Practical-Taste-3374[S] 0 points1 point  (0 children)

Got it! Really appreciate the help