I thought I passed the variables on when I coded these lines:
How would you do it?
def shutout(scoreA, scoreB): shutoutsA = 0 shutoutsB = 0 while simNGames(probA, probB): if scoreA == 0: shutoutsB = shutoutsB + 1 if scoreB == 0: shutoutsA = shutoutsA + 1 return shutoutsA, shutoutsBShouldn't I be able to use the shutoutsA and shutoutsB variables?
How would you do it?