1 2 3 4 5 6 7 8 9 10 11 12 13 14
def a(): p = int(input('p =')) q = int(input('q =')) t = p*q q10 = t - ((t*5)/100) q50 = t - ((t*7) / 100) if q < 10: print('totlal= ',t) elif q < 50: print('total= ',q10) elif q >= 50: print('total= ',q50) a()
1 2 3 4 5 6
p =Traceback (most recent call last): Line 14, in <module> a() Line 2, in a p = int(input('p =')) EOFError