Westonci.ca is the premier destination for reliable answers to your questions, brought to you by a community of experts. Join our platform to get reliable answers to your questions from a knowledgeable community of experts. Get detailed and accurate answers to your questions from a dedicated community of experts on our Q&A platform.
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 our answers were useful. Return anytime for more information and answers to any other questions you have. We're here to help at Westonci.ca. Keep visiting for the best answers to your questions.