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) print(a)
1 2 3 4
Line 1 def a: ^ SyntaxError: invalid syntax