Informatique

Question

bonjour j'ai besoin de votre aide avec python
bonjour j'ai besoin de votre aide avec python

1 Réponse

  • Réponse :

    def Tarif_M8Y(nb_tirages):

       total = 0

       if nb_tirages <= 499:

           total = nb_tirages * 0.15

           total+= 3

           return total

       elif nb_tirages <= 999:

           total = nb_tirages * 0.13

           total+=4

           return total

       else:

           total = nb_tirages * 0.08

           total+=5

           return total

    Explications :

    demande moi si tu as besoin d'explications pour certaines notations !