def facture(x): if x<=10: return 17*x else: return 13*x+40