Question: Create a program that Lab 2 _ 2 . py that will con nuously add five animal names to a list . A er that,

Create a program that Lab2_2.py that will con nuously add five animal names to a list. A er that, please
print the list that you have created.
HINTS: ----
To declare an empty list, use animals =[]
You should be using a while loop to check if the list count is less than 6
To get input from the command line, use x = input("Please enter an animal name: ")
To add numbers to a list ls, use animals.append(x)
Task 1 Sample Solu on:
Output should like this, For ex: number in the list should be [1,2,3,4,5] not [1,2,3,4,5]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!