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
import random
pythons_guess = random.randint(1,20)
score = 0
monee = 10
while True:
        users_guess = int(input("Guess this number from 1 to 20: "))
        if users_guess == pythons_guess:
                score += 1
                print("YOU GOT IT! YOU HAVE " + str(score) + " POINTS. GREAT JOB!")
                score += 0
                pythons_guess = random.randint(1,50)
                monee = 10
        else:
                print ("YOU HAVEN'T QUITE GOTTEN IT.")
                if pythons_guess - users_guess <= 10:
                        print ("YOU WERE QUITE CLOSE IN FACT.")
                else:
                        print("YOU WEREN'T QUITE CLOSE.")   
                        monee -= 1
        if monee == 0:
                print("""YOU HAVE USED UP ALL YOUR TRIES SEARCHING FOR THE NUMBER.
        :(:(:(:(:(:(:(:(:(:(:(:(""")