-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathApplied.py
52 lines (43 loc) · 1.45 KB
/
Applied.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
#Applied#
import random
print("\nWelcome to number guessing game...\n")
asd=random.randint(0,50)
ass=random.randint(0,100)
#You should'nt be looking in here...#
add=random.randint(0,500)
exe=["easy","medium","hard"]
print("These are the possible difficulties you can choose from:\n",exe,"\n")
aaa=input("Select Difficulty!\nType it in!\n ")
if aaa in exe[0]:
print("Okay!")
while True:
ent=int(input("Enter your guess!\nNumber:"))
if ent<asd:
print("Sorry bud your guess was too small.\nTry again...\n")
elif ent>asd:
print("Try a little lower bro...\n")
else:
print("nice guess bro...\nIt was correct!")
break
if aaa in exe[1]:
print("Okay!")
while True:
ent=int(input("Enter your guess!\nNumber:"))
if ent<ass:
print("Sorry bud your guess was too small.\nTry again...\n")
elif ent>ass:
print("Try a little lower bro...\n")
else:
print("nice guess bro...\nIt was correct!")
break
if aaa in exe[2]:
print("Oh Wow, I also enjoy living life on the harderside.\n(*-*)\n")
while True:
ent=int(input("Enter your guess!\nNumber:"))
if ent<add:
print("Sorry bud your guess was too small.\nTry again...\n")
elif ent>add:
print("Try a little lower bro...\n")
else:
print("nice guess bro...\nIt was correct!")
break