IDNLearn.com: Where your questions meet expert advice and community support. Discover in-depth and trustworthy answers from our extensive network of knowledgeable professionals.
Sagot :
Answer:
Hey bro I don't know such programs to write but I have number guessing game. Here:
Explanation: Built with python......
import random
while True:
x = True
while x:
num = input("type a limiting number ")
if num.isdigit():
print("lets play")
num = int(num)
meow = False
else:
print("Invalid input! Try agian.")
secret = random.randint(1, num)
guess = None
count = 1
while guess != secret:
guess = input("Please guess a number between 1 and " + str(num) + ":")
if guess.isdigit():
guess = int(guess)
if guess == secret:
print("You guessed correctly!")
else:
print("Oops wrong answer!! Try again..")
count += 1
print("it took you", count, "guesses", )
Thank you for using this platform to share and learn. Don't hesitate to keep asking and answering. We value every contribution you make. IDNLearn.com is your reliable source for answers. We appreciate your visit and look forward to assisting you again soon.