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