|
@ -1,5 +1,8 @@ |
|
|
from fonction_points import points |
|
|
from fonction_points import points |
|
|
def totalPoints (joueur): |
|
|
def totalPoints (joueur): |
|
|
|
|
|
"""fonction totalPoints qui prend en paramètre une chaîne de caractère joueur(le nom du joueur) |
|
|
|
|
|
et qui renvoie le nombre total de points marqués par ce joueur""" |
|
|
|
|
|
|
|
|
total_pts = 0 |
|
|
total_pts = 0 |
|
|
with open("stats.txt") as stats: |
|
|
with open("stats.txt") as stats: |
|
|
for ligne in stats : |
|
|
for ligne in stats : |
|
|