Computer science project

profileJerry Shen
Project_21.py

from random import randint, choice, choices, sample def generate_numbers(limit = 34, num = 5): #do not change this line pass #Function below needs correcting #Do not add or delete lines #You may need to change indentation #Actual code changes are small (indexing errors, errors in boolean expressions) #BE CAREFUL - there may be an infinite loop in here!!! def lotto_prize(attempt, winning, prizes): #do not change this line match = 0 i = 0 #Check each item in attempt to see if it is in winning while(i<=len(attempt)): #print(i) #You might find this debugging print line helpful #Record a match if the items match if i in winning: match = 1 #print('matched',i) #You might find this debugging print line helpful i += 1 #print(match) #You might find this debugging print line helpful if match >= (len(prizes)): #Did they get enough numbers to win a prize? return prizes[match] return 0 def simulate_lotto(your_numbers, max_pick, max_plays = 10000): pass #Absolutely no additional code in this file #No function calls #No input lines #There should be no unindented code other than the import line and the def lines