nick34992
5/18/2016 - 6:39 PM

Calculate Gross Pay - Python

Calculate Gross Pay - Python

#!/usr/bin/python

hours = float(raw_input('Enter Hours: '))
rate = float(raw_input('Enter Rate: '))
pay = hours * rate
print ("Pay: " + str(pay))

# Python 2 --> Python 3
# raw_input() --> input()
# input() --> eval(input())