Page 1 of 1

Write a short program that has the user enter 5 animals into a list and then print out the list. Use a “for” loop to get

Posted: Mon Jun 06, 2022 4:46 pm
by answerhappygod
Write a short program that has the user enter 5 animals into a
list and then print out the list. Use a “for” loop to get the input
and another “for” loop to print out the values.
Using the debugger, set a breakpoint on the line after the user
enters a value. In the debugger window you will see the value of
the variable that the user just entered, the value of the index of
the list, and the control variable for the loop.
Take a screen shot of the debugger window, and a screen shot of
the output screen, and paste those into the Word document you will
submit with this assignment.
Your output window should resemble this:
Write A Short Program That Has The User Enter 5 Animals Into A List And Then Print Out The List Use A For Loop To Get 1
Write A Short Program That Has The User Enter 5 Animals Into A List And Then Print Out The List Use A For Loop To Get 1 (169.73 KiB) Viewed 34 times
C:\Windows\py.exe Please enter an animal name for animal 1: cat animal 4: fox Please enter an animal name for animal 2: dog Please enter an animal name for animal 3: rabbit Please enter an animal name for Please enter an animal name for These are the animals that were cat animal 5: bear entered in the list dog rabbit fox bear