- Joined
- Sep 21, 2024
- Messages
- 2
- Reaction score
- 0
put this in your code 1 in a billion chance
import random
print("do you want to play a game?")
if(input)("") == "yes":
print("Ok what do you want to play?")
if(input)("") == "guess the number":
print("ok")
print("guess a number between 1 and 1000000000")
number = random.randint(1,1000000000)
guess = int(input(""))
while(number!=guess) :
print("nope try again")
number = random.randint(1,1000000000)
guess = int(input(""))
else:
print("you win! the number was",number)
import random
print("do you want to play a game?")
if(input)("") == "yes":
print("Ok what do you want to play?")
if(input)("") == "guess the number":
print("ok")
print("guess a number between 1 and 1000000000")
number = random.randint(1,1000000000)
guess = int(input(""))
while(number!=guess) :
print("nope try again")
number = random.randint(1,1000000000)
guess = int(input(""))
else:
print("you win! the number was",number)