Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

java to python

hrs = input("Enter Hours:")
h = float(hrs)
rph=float(input("Enter rate per hours:"))
if hrs>40:
    print (40*rph +(h-40)*rph*1.5)
else:
    print(h*rph)
Source by www.py4e.com #
 
PREVIOUS NEXT
Tagged: #java #python
ADD COMMENT
Topic
Name
9+4 =