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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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 33 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply