Simple Python Program - unsure with While loop
<p>My program is as follows:</p>

<pre><code>#Question 6_2010.py

PlayerOneScore=0
PlayerTwoScore=0

    NoOfGamesInMatch=(int(input('How many games in the match?')))
    NoOfGamesPlayed=1+NoOfGamesInMatch

    for NoOfGamesPlayed in range(NoOfGamesInMatch):
        while NoOfGamesInMatch!=NoOfGamesPlayed:
            PlayerOneWinsGame=(input('Did Player One win the game (enter Y or N)?'))    
        if PlayerOneWinsGame=='Y':
            PlayerOneScore = PlayerOneScore + 1
        else:
            PlayerTwoScore = PlayerTwoScore + 1

    print(PlayerOneScore)
    print(PlayerTwoScore)
</code></pre>

<p>It is nothing complicated. I've just started Python so I'm a bit confused with the loops. When run, the program does as it should - it prints <code>"'Did Player One win the game (enter Y or N)?')"</code> the amount of times I enter for <code>NoOfGamesInMatch</code>, however, when it prints the player scores, it only does 1 0 either way, depending on if 'Y' is entered or not. If I enter 8 games, 5 'Y' and 3 'N' (or any other character) it should print PlayerOneScore as 5 and PlayerTwoScore as 3 but it only does 10 either way.</p>

<p>What am I missing from my while loop? Thanks.</p>
