A task i have been set is to create a program that will help people pick random numbers for the lottery and i have no clue where to start.The program must:
- Allow players to select between 1 - 5 lines.
- 6 number on each line.
- Each number must be between 1-49.
- And an option to repeat.
This is all i have so far:
lines=int(input("how many lines would you like?"))
for i in range (0,lines):
import random
lotterynumbers = []
x = 0
while x < 6:
lotterynumbers.append(random.randint(1, 49))
x += 1
lotterynumbers.sort()
print (lotterynumbers)
Please help.