14 lines
272 B
Python
14 lines
272 B
Python
|
# -*- 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)
|