Les mathématiques impliquent la manipulation de nombres dans un programme. Pour des questions mathématiques générales, veuillez les poser sur math.stackexchange.com. Remarque: si votre question concerne des résultats inattendus dans les calculs en virgule flottante, veuillez d'abord lire https://stackoverflow.com/questions/588004/is-floating-point-math-broken.
Given # if we cycled list 4 times, output would be
output = [('a',2), ('b',1), ('c',1)]
# if we cycled list 7 times, output would be
output = [('a',3), ('b',2), ('c',2)]
...