Good luck replit python

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)
 
Joined
Sep 21, 2024
Messages
2
Reaction score
0
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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,890
Messages
2,569,971
Members
46,305
Latest member
DaciaGly79

Latest Threads

Top