How to restart a simple coin tossing game
<p>I am using python 2.6.6</p>

<p>I am simply trying to restart the program based on user input from the very beginning.
thanks</p>

<pre><code>import random
import time
print "You may press q to quit at any time"
print "You have an amount chances"
guess = 5
while True:
    chance = random.choice(['heads','tails'])
    person = raw_input(" heads or tails: ")
    print "*You have fliped the coin"
    time.sleep(1)
    if person == 'q':
         print " Nooo!"
    if person == 'q':
        break   
    if person == chance:
        print "correct"
    elif person != chance:
        print "Incorrect"
        guess -=1
    if guess == 0:
        a = raw_input(" Play again? ")
        if a == 'n':
            break
        if a == 'y':
            continue

#Figure out how to restart program
</code></pre>

<p>I am confused about the continue statement. 
Because if I use continue I never get the option of "play again" after the first time I enter 'y'.</p>
