Question: Write a function that uses the random Links to an external site. module to generate random lottery ticket numbers. import random def build _ lotto
Write a function that uses the random
Links to an external site. module to generate random lottery ticket numbers.
import random
def buildlottoticket str:
pass
A lottery ticket has:
numbers from to inclusive
number from to inclusive representing the "powerball"
hyphendelimited numbers eg
a powerball number starting with PB
Since the outputs are random, expect small differences each time this function runs. Results should look similar to the following:
buildlottoticket
PB
buildlottoticket
PB
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
