Apr-09-2019, 02:56 PM
import random secret = random.randint(1, 99) guess = 0 tries = 0 print("AHOY! I'm the Dread Pirate Roberts, and I have a secret") print("It's the number from 1 to 99..and I'll give you 6 chances") while guess != secret and tries < 6: guess = input("What's your guess? ") if guess < secret: print("To Low...You creep") elif guess > secret: print("Too High, Douchbag") tries = tries + 1 if guess == secret: print("Avast! You finally got it!") else: print("No more chances...Play again later") print("The secret number was", secret)