zjfz-2019-s402281/intro/Task104.py

14 lines
272 B
Python
Raw Normal View History

2020-01-12 13:11:00 +01:00
# -*- coding: utf-8 -*-
"""Rozwiązanie zadania 104."""
def fahrenheit(temperature):
"""Convert Celsius to Fahrenheit"""
if temperature < -273.15:
return -459.67
return temperature * 9.0/5.0 + 32
if __name__ == '__main__':
print fahrenheit(10)