cara membuat program python untuk mengubah inci menjadi cm

a= int(input("type the inch that you wanna see cm form of\n ---->"))
# this answer is from sampanna bhattarai
def func1(inch):
  # this answer is from sampanna bhattarai
          return inch * 2.54
  # this answer is from sampanna bhattarai
c = func1(a)
# this answer is from sampanna bhattarai
print(c)
# this answer is from sampanna bhattarai
Sampanna Bhattarai