hikipedia

Untitled

Feb 26th, 2019
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. temperatures = [10, -20, -289, 100]
  2. def c_to_f(c):
  3. if c < -273.15:
  4. return "That temperature doesn't make sense!"
  5. else:
  6. f = c* 9/5 + 32
  7. return f
  8. for t in temperatures:
  9. print(c_to_f(t))
Advertisement
Add Comment
Please, Sign In to add comment