Python random number generator
Question: The code works fine, but I can't figure out how to completely restart the
program. I put continue in the code and I know that is not correct, because I
want it to restart completely after you guess the correct number and it
displays 'Congratulations! You guessed my number in _ guesses.

    
    
    import random
    
    guesses = 0
    number = random.randint(1, 100)
    print('I am thinking of a number between 1 and 100.')
    
    while guesses < 100:
        guess = int(input('Guess?  '))
    
    
        guesses = guesses + 1
    
        if guess < number:
            print('Your guess is too low.') 
    
        if guess > number:
            print('Your guess is too high.')
    
        if guess == number:
            continue
    
    if guess == number:
        guesses = str(guesses)
        print('Congratulations!  You guessed my number in ' + guesses + '      guesses!')
    


Answer: so like this:

    
    
    while True:
        guesses = 0
    
        while guesses < 100:
            if guesses == 100:
                break
                ...
            if guess == number:
                print ...
    
        yorn = input "do you want to try again?") 
        if yorn == 'n':
            break
    

so just wrap your code in an outer while, obviously i skipped a lot of your
code

