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 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
Get step-by-step solutions from verified subject matter experts
