Discover a wealth of knowledge at Westonci.ca, where experts provide answers to your most pressing questions. Get quick and reliable answers to your questions from a dedicated community of professionals on our platform. Our platform offers a seamless experience for finding reliable answers from a 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", )
We hope this information was helpful. Feel free to return anytime for more answers to your questions and concerns. We hope this was helpful. Please come back whenever you need more information or answers to your queries. We're dedicated to helping you find the answers you need at Westonci.ca. Don't hesitate to return for more.