First, make sure to uncomment the random. seed(1,2,3,4) on line 6, so the results will match the same as the Moodle.
Then what I did was, I set the variable human = 0 and computer = 0 before the loop so it can accumulate,
for each of the if functions, where the computer wins, do computer = computer + 1 and human = human + 1 where human wins,
hope that helps