Answer to Question #243495 in Python for Jay

Question #243495

Write a program that inputs the length of two pieces of fabric in feet and inches ( as whole numbers) and prints the total

enter the feet: 3

enter the inches: 11

enter the feet: 2

enter the inches : 5


1
Expert's answer
2021-09-28T02:41:28-0400
feet = int(input('enter the feet: '))
inch = int(input('enter the inches: '))
feet += int(input('enter the feet: '))
inch += int(input('enter the inches: '))
feet += inch // 12
inch %= 12
print(f'total {feet} feet {inch} inches')

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS