Question: Create a new Python program in IDLE, and save it as lab8.py.(Again, I recommend saving lab progranms Your Python program will do the following: Create
Create a new Python program in IDLE, and save it as lab8.py.(Again, I recommend saving lab progranms Your Python program will do the following: Create an empty list . Use a for loop to ask the user for 10 numbers. Add each number to your list using the append metha . Use another for loop to print the list in reverse order, one per line . Use a while loop to count how many positive numbers are in the list Here is one example of how the program should look when it runs (user input is in red); Enter a number: 3 Enter a number: 2 Enter a number: 4 Enter a number: 10 Enter a number: 8 Enter a number: 17 Enter a number: 20 Enter a number: 30 Enter a number: -5 Enter a number: 2 Reversed list: -2 -5 30 -20 17 -8 10 Positive count: 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
