Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. def task1():
  2. weight = float(input("Enter the weight in pounds:"))
  3.  
  4. task1_convert(weight)
  5.  
  6.  
  7. def task1_convert(x):
  8. kilo = x / 2.52
  9. print("The conversion of", format(x, ".1f"), "pounds to kilograms is", format(kilo, ".2f"), "kilograms")
  10.  
  11. task1()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement