def main(): # The user will enter the number of Sq. Ft. in the job square_feet = int(input('Enter the number of Square Feet in job: ')) print('The square footage of the job is', square_feet) # The program will now calculate the number of hours required to finish job hours_worked = (square_feet / 115) * 8 print('The hours required to finish the job is', hours_worked) # The program will now calculate the cost of paint. paint_required = (square_feet / 115) print('The job requires', paint_required, 'gallons of paint to complete the job.') cost_paint
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question