zjfz-2019-s402281/intro/Task104.py

13 lines
200 B
Python
Raw Normal View History

2020-01-12 13:16:55 +01:00
#!/usr/bin/python2
2020-01-12 13:11:00 +01:00
# -*- coding: utf-8 -*-
"""Rozwiązanie zadania 104."""
2020-01-12 13:48:47 +01:00
def fahrenheit(number):
2020-01-12 13:52:49 +01:00
2020-01-12 13:48:47 +01:00
if number < -273.15:
return -459.67
2020-01-12 13:54:47 +01:00
number = (number*9/5)+32
2020-01-12 13:48:47 +01:00
return number
2020-01-12 13:11:00 +01:00