import random
secret = random.randint(1,99)
guess =0
tries =0print"AHOY! I'm the Dread Pirate Roberte, and I have a secret !"print"It is number from 1~99, I will give you six tries."while guess != secret and tries <6:
guess =input("What's your guess?")if guess < secret :print"Too low, yo scurvy dog!"elif guess > secret :print"Too high, landlubber!"
tries = tries +1if guess == secret :print"Avast ! Ye got it. Found my secret, You did."else:print"You lose!!!"print"The right secret number is ", secret