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

 Homework - Python basics 1. Write a program to request the

Homework - Python basics 1. 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.01

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 Databases Questions!