def maFonction(c): if c <= 10: p = 12 if c <= 18: p = 15 if c <= 40: p = 19 else: p = 20 return p