Hello, This is my edhesive question and the language is python. I am revieiving a error code for line 4.
feet1=float(input("Enter the Feet for the first piece of fabric: "))
inches1=float(input("Enter the Inches for the first piece of fabric: "))
feet2=float(input("Enter the Feet for the second piece of fabric: "))
inches2=float(input("Enter the Inches for the second piece of fabric: "))
#Get the initial total amount of feet
initialFeet = feet1 + feet2
#Get the initial total amount of inches
initialInches = inches1 + inches2
#Get the remaining inches which is a modulus of 12 (12 inches in 1 foot)
remainingInches = initialInches % 12
#Get the addiitonal feet to add from the total initial inches
#This total has to be divided by 12 and then have a floor done on it which will remove any decimal values
additionalFeet = math.floor(initialInches / 12)
#The total feet will be the initial feet (feet1 and feet2) plus the additional calculated feet
totalFeet = initialFeet + additionalFeet
print ("Total: Feet: " + str(totalFeet) + " Inches: " + str(remainingInches))
First, can you show me what is the error? Second, please use Markdown for better looking post. Thanks.
Sorry this is my first time using this website. But i am actually not sure what is the problem. Edhesive is giving me a error saying
"Traceback (most recent call last):
File "./prog.py", line 4, in
EOFError: EOF when reading a line"
Im not sure what this means and cant figure out how to correct it.