Im trying to create buttons so this action can be pass after. Iām new at this sorry to a pain. Here is my scrip without the buttons:
```
import random
def workerFunction():
while True:
try: x=input()
except EOFError: pass
if x.lower().startswith('q'):
break
elif x == '1': print( 'Megabucks',factory.factoryLogic ( 1, 46, 6 ) )
elif x == '2': print( 'Lucky For Life',factory.factoryLogic (1, 48, 5 ),factory.factoryLogic( 1, 18, 1 ) )
elif x == '3': print( 'Powerball',factory.factoryLogic (1, 69, 5 ),factory.factoryLogic( 1, 26, 1 ) )
elif x == '4': print( 'Mega Millions',factory.factoryLogic (1, 70, 5 ),factory.factoryLogic( 1, 25, 1 ) )
class factory:
def __init__( self ): self.a = 0
def factoryLogic( startPosi, endPosi, interateNumber ):
a = random.sample( range( startPosi, endPosi+1 ), interateNumber )
a.sort()
return a
if name == 'main':
workerFunction() ```
