How do I represent this structured English 'code' in Python code?
FOR NoOfGamesPlayed <-- 1 TO NoOfGamesInMatch Do
For NoOfGamesPlayed = 1 To NoOfGamesInMatch
for NoOfGamesPlayed in range(1, NoOfGamesInMatch+1): # do stuff
But note that Python uses 0-based indexing, not 1-based indexing.
So for a list of 5 elements, the valid indices are