[ create a new paste ] login | about

Link: http://codepad.org/IIlvZLlM    [ raw code | output | fork ]

Python, pasted on Mar 15:
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)


Output:
1
2
3
4
  Line 1
    def a:
         ^
SyntaxError: invalid syntax


Create a new paste based on this one


Comments: