I'm making a small game that chooses a random number in the given limit and the user tries to guess the number. I tried to add chances so you could try multiple times. Why is it returning the guessed number multiplied by the chance number?

```
def guessTheNumber():
    chances = int(input('How many chances do you want: '))
    limit = int(input('Input limits: '))
    inputnum = int(input('Input number: '))
    x = 1
    while x <= chances:
        randomnum = randomNum(limit)
        if inputnum == randomnum:
            print('you won!')
            x+=1
        continue
    else:
        print('THe number was {}'.format(randomnum))
        replay()

```

When called it returns:

```
guessTheNumber():

    How many chances do you want: 3
    Input limits: 10
    Input guess: 4
    you won!
    you won!
    you won!
    The number was 4
    play again?: no
    Goodbye

```