def prix(M): if M < 20: return 0 elif M < 100: ... elif M < 200: ... else: ...