New course! Every coder should learn Generative AI!
Try a free lesson0
Write a program ask height in cm and then convert it to feet and inches. 1 foot =12 inches ,1inches =2.54 cm.
2 Answers
0
Please show your attempt!
0
foot = int(input())
def convert():
print(foot*12)
convert()