Question: how do i make this create two lists with 10 random numbers. i want to keep the two functions. please help me understand and ill

 how do i make this create two lists with 10 random how do i make this create two lists with 10 random numbers. i want to keep the two functions. please help me understand and ill upvote!

import random myList1 = 1 mylist2 = [] def randomNumbers(): data = random.randint(1, 10) return data def listMaker(x, randomNumbers): for line in range(1, 10): line = X.append(randomNumbers()) return line

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!