How to generate UK - lottery numbers using Python's random library

Опубликовано: 23 Октябрь 2024
на канале: tondekush
209
1

Import random library
Create a function that can be used as many times as one wishes.

The CODE:
import random as r
def lotto():
name = input()
l = range(1,60)
print("Pick your numbers " + name )
play = "My numbers are: ", r.sample(l, 6)
return play