You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
584 B
19 lines
584 B
from traitement import traitement
|
|
def rebondPasses(joueur):
|
|
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, rebondOff, rebondDef
|
|
|