Question: I have never learned python before and I did not understand what the professor said. Can someone tell me how to solve this assignment? #import

I have never learned python before and I did not understand whatI have never learned python before and I did not understand what the professor said. Can someone tell me how to solve this assignment?

#import python modules needed by program here import random #initialize all your variables here # create an array filled with 1000 random integers lIarray = [] a = = # create second array that is empty. lIarray2 [] # create a third array that is empty lIarray3 [] #program body starts here for lIarrayfill in range (0,999): print (random.randint (2,89)) # remove an item from the first list if it is even place it in the second array if it is odd place it in the third array # when the first array is empty, print the second and third array showing that they are all even or all odd. # take the first item off the 2nd list, and put it into the first list. # take the second item off the 2nd list, compare it to the first item in the first list, if it is smaller add it before the first item # do it again, this time, you will need to check each item in the first list before adding it in the correct spot. if larger add it after. #program body ends here

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!