Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- temperatures = [10, -20, -289, 100]
- def c_to_f(c):
- if c < -273.15:
- return "That temperature doesn't make sense!"
- else:
- f = c* 9/5 + 32
- return f
- for t in temperatures:
- print(c_to_f(t))
Advertisement
Add Comment
Please, Sign In to add comment