desislava_topuzakova

04. Inches to Centimeters

Feb 6th, 2021
901
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. # 1. read inches -> float
  2. # 2. calculate cm = inches * 2.54
  3. # 3. print cm
  4.  
  5. inches = float(input())
  6. cm = inches * 2.54
  7. print(cm)
Advertisement
Add Comment
Please, Sign In to add comment