python
Dashboard
My Repos
Compilers
Python Online
Node JS Online
Golang Online
codepy
Login
My Repos
Sign Out
Online Python Interpreter
Stop
Run
def compute(h,r): if h<=40: pay=h*r elif h>40: pay=40*r+(h-40)*r*0.5 return pay hrs=input("enter:" ) h=float(hrs) rate=input("enter:" ) r=float(rate) p=pay(h,r) print(p)
Share this code with others
Public
Clear
My Repos
Repo
Lang
Login
Register
Login
Create a free account. No Credit card info required.
I agree with the Codepy
Term of Service
Sign Up