So I'm working on my lottery code in my free time, and I have come across a minor issue.

I want to prevent the user from entering two of the same numbers in their lottery draw numbers i.e I don't want user picking the number 1 twice.

Everything else works fine.

Here is my entire code:

```
import random
lotteryNumbers = []

print("Welcome to your new Lotto service")

lotterydrawfile = open("lotterydrawfile.txt","w")
for i in range (6):
    number = random.randint(1,60)
    lotterydrawfile.write(str(number) + " ")

lotterydrawfile.close()

userentryfile = open("userentryfile.txt","w")
for i in range (6):
    number = input("Enter a number between 0 and 60. Numbers must not be in word format")
    for i in range (1000):
        if number < "0" or number > "60":
            print("Your number needs to be between 0 and 60")
            number = input("Enter a number between 0 and 60")

    print(str(number))
    userentryfile.write(str(number) + " ")
userentryfile.close()

userlottonumbers = open("userentryfile.txt").read()

usernumber = []
number_string = ""
for i in userlottonumbers:
    number_string = number_string + str(i)

    if str(i) == " ":
        usernumber.append(number_string)
        number_string = ""
print("Your numbers are " + str(usernumber))

lotterydraw = open("lotterydrawfile.txt").read()
number_string1 = ""
lottodraw = []
for j in lotterydraw:
    number_string1 = number_string1 + str(j)

    if str(j) == " ":
        lottodraw.append(number_string1)
        number_string1 = ""

print("The lotto draw was " + str(lottodraw))

same = 0
for i in usernumber:

    for j in lottodraw:

        if i == j:
            same =same + 1

prize = same * 100

if same == 6:
    prize = 10000000
print("You won £" + str(prize))

```

The improvement that I want to make is where the line begins:

```
    userentryfile = open("userentryfile.txt","w")
for i in range (6):
    number = input("Enter a number between 0 and 60. Numbers must not be in word format")
    for i in range (1000):
if number < "0" or number > "60":
        print("Your number needs to be between 0 and 60")
        number = input("Enter a number between 0 and 60")

```

But underneath, where I want the user to stop inputting two of the same numbers.

Thanks in advance.