@CAILEY0132790/

# lottery guess and random lottery

## No description

Files
• main.py
main.py
```1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
```
```#By: Cailey Bianchini
#Subject: Lottery

import random
lottery_numbers = {random.randint(1,99),random.randint(1,99), random.randint(1,99), random.randint(1,99), random.randint(1,99)}

PLAYER_NAME = (input())

print(" ")

print("Hello " + str(PLAYER_NAME) + ".")

print(" ")

print("You are to print five numbers to guess the lottery. These numbers can vary from 1 to 99.")

print(" ")

print("1. ")
numbers_1 = int(input())

print("2. ")
numbers_2 = int(input())

print("3. ")
numbers_3 = int(input())

print("4. ")
numbers_4 = int(input())

print("5. ")
numbers_5 = int(input())

numbers = {(numbers_1), (numbers_2), (numbers_3), (numbers_4), (numbers_5)}

numbers_wrong = lottery_numbers.difference(numbers)
numbers_right = numbers.difference(numbers_wrong)

print(" ")

print("The lottery was " + str(numbers_wrong) + ".")
print("You guessed " + str(numbers_right) + ".")

if (len(numbers_right) > 3) and (len(numbers_right) < 5):
print("Great job " + str(PLAYER_NAME) + "!" )

if (len(numbers_right) == 5):
print("Winner " + str(PLAYER_NAME) + "!!!")

if (len(numbers_right) < 3):
print("Oof.")
```