Question: Python Question Write a program to request the user enter a desired number of values. Create a loop to load the desired number of user-specified

Python Question
Write a program to request the user enter a desired number of values. Create a loop to load the desired number of user-specified values into a list. Create two lists with the same values but generated in different ways. On list will be originally initialized to have the desired length before entering the loop. The other list will begin empty and values be appended for every iteration of the loop. Output from the program should appear as follows: How many values do you want? 5 Enter val #1: 5 Enter val #2: 4 Enter val #3: 3 Enter val #4: 2 Enter val #5: 1 The first list is [5.0, 4.0, 3.0, 2.0, 1.0] The second list is [5.0, 4.0, 3.0, 2.0, 1.0]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
