diff --git a/rebondsPasse.py b/rebondsPasse.py index c83c9f4..03c8c2a 100644 --- a/rebondsPasse.py +++ b/rebondsPasse.py @@ -1,3 +1,19 @@ from traitement import traitement def rebondPasses(joueur): - tb1 = traitement ("stats") \ No newline at end of file + tb1 = traitement ("stats") + lst_joueur = tb1[0] + lst_action = tb1[1] + passe = 0 + rebondOff = 0 + rebondDef = 0 + for i in range(len(lst_joueur)): + if str(joueur) == str(lst_joueur[i]): + action = lst_action[i] + if action == "passe": + passe = passe +1 + if action == "rebondOff": + rebondOff = rebondOff + 1 + if action == "rebondDef": + rebondDef = rebondDef +1 + return("Passe:",passe,"RebondOff:",rebondOff,"rebondDef:",rebondDef) + \ No newline at end of file