At Westonci.ca, we connect you with the best answers from a community of experienced and knowledgeable individuals. Get immediate and reliable solutions to your questions from a community of experienced professionals on our platform. Our platform provides a seamless experience for finding reliable answers from a network of experienced 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", )
Thanks for using our platform. We're always here to provide accurate and up-to-date answers to all your queries. Thanks for using our platform. We aim to provide accurate and up-to-date answers to all your queries. Come back soon. We're glad you chose Westonci.ca. Revisit us for updated answers from our knowledgeable team.