assignment 6 5 python for everybody

Solutions on MaxInterview for assignment 6 5 python for everybody by the best coders in the world

showing results for - "assignment 6 5 python for everybody"
Leon
05 May 2016
1def computepay(h,r):
2    if h > 40:
3        pa = 40 * r + (h-40)*1.5*r
4    else:
5        pa = h * r
6    return pa
7
8hrs = input("Enter Hours:")
9h = float(hrs)
10rate = input("Enter Rate")
11r = float(rate)
12p = computepay(h,r)
13
14print("Pay",p)
Louis
24 Jan 2018
1text = "X-DSPAM-Confidence:    0.8475";
2a= text.find(':')
3b= text.find('5')
4c= text[a+1:b+1]
5
6d= float(c.lstrip())
7
8print(d)
9