Ну дуже не чітко розписано що треба зробити. Доводиться клацать навмання, щоб з помилок сформувати рішення...
# Height in Feet and Inches
# Write a program that converts the user's height, given in centimeters, into feet and inches.
# The height value is given in the variable height_cm. One inch is equal to 2.54 cm, and one foot is equal to 12 inches.
# Your task is to calculate the number of complete feet in the given height and convert the remainder into inches.
# Display the result on the screen.
height_cm = float(input("Enter height in centimeters: "))
# Constants
cm_per_inch = 2.54
inch_per_foot = 12
# Write your code here
height_inch = height_cm / cm_per_inch
print(height_inch)
height_feet = height_inch / inch_per_foot
print(height_feet)
print(height_inch % inch_per_foot)
print(height_inch // inch_per_foot, "feet", height_inch - inch_per_foot * height_feet, "inches")