Well, technically, it's his second, but the first one was boring.
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 is a number from 1 to 99. I'll give you 6 tries."
while guess != secret and tries < 6:
guess = input("What's yer guess?")
if guess
(
Read more... )