We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40bec80 commit a98c446Copy full SHA for a98c446
1 file changed
numbergame.py
@@ -1,14 +1,16 @@
1
import random
2
import time
3
4
-number = random.randint(1, 100)
+dif = 100
5
+#Change the value of dif to change the difficulty!
6
+number = random.randint(1, dif)
7
score = float(1)
8
9
print("The goal of the game is to guess the number, and get the lowest score possible!")
10
time.sleep(1)
11
print("You will be told if the number you guessed is greater or lesser than the actual number!")
12
-print("Pick a number between 1 and 100!")
13
+print("Pick a number between 1 and ", dif, "!")
14
15
while True:
16
guess = float(input("Enter your guess!"))
0 commit comments