Question: Write a program that generates and prints five random lottery numbers of a three-digit number between 100 and 999. The three digits in the

Write a program that generates and prints five random lottery numbers of

Write a program that generates and prints five random lottery numbers of a three-digit number between 100 and 999. The three digits in the number are the same. Use only one loop and randint function to generate the random numbers. Note: random library includes functions for working with random numbers; to generate a random integer between a and b, import random library, then use random.randint(a,b) function. Lottery number1: 333 Lottery number2: 222 Lottery number3: 888 Lottery number4: 777 Lottery number5: 111

Step by Step Solution

3.37 Rating (150 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

import random for i in range 5 lotterynumb... View full answer

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 Programming Questions!