Skip to content

Instantly share code, notes, and snippets.

@jiyeonseo
Created February 22, 2015 10:08
Show Gist options
  • Save jiyeonseo/a9f7c03930b5ab824fb8 to your computer and use it in GitHub Desktop.
Save jiyeonseo/a9f7c03930b5ab824fb8 to your computer and use it in GitHub Desktop.
exercise 3.1
hrs = raw_input("Enter Hours:")
h = float(hrs)
rate = raw_input("Enter Rate:")
r = float(rate)
if hrs > 40 :
pay = 40 * r + (h-40) * r * 1.5
else :
pay = h * r
print pay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment