250.0 square feet wall will need:

0.714285714286 gallons of paint

- Code: Select all
`wall_area = 250.0`

gallons_paint = 0.0

wall_area = float(input('What is the area of the wall (in square feet)?'))

gallons_paint = wall_area*1.0/350;

print(str(wall_area)+" square feet will need:"+ str(gallons_paint)+" gallons of paint")

print(wall_area, 'square feet wall will need:')

print(gallons_paint, 'gallons of paint')

Result:

What is the area of the wall (in sq ft)?Traceback (most recent call last):

File "main.py", line 4, in

wall_area = float(input('What is the area of the wall (in sq ft)?'))

EOFError: EOF when reading a line

The solution is the middle 3 lines and there's something wrong with the first line but I cannot figure it out. Any help is greatly appreciated!!