ramsess90

dict

Oct 25th, 2018
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. number = float(input())
  2. mu_in = input()
  3. mu_out = input()
  4. mu = {"m": 1, "mm": 1000, "cm": 100, "mi": 0.000621371192, "in": 39.3700787, "km": 0.001, "ft": 3.2808399, "yd": 1.0936133}
  5. meters = number / mu[mu_in]
  6. output = meters * mu[mu_out]
  7. print(output)
Advertisement
Add Comment
Please, Sign In to add comment