>>> def fahrenheit2celsius(fahrenheit):
... return (fahrenheit - 32) * (5 / 9)
>>> fahrenheit2celsius(100)
37.77777777777778
>>> def celsius2fahrenheit(celsius):
... return celsius * (9 / 5) + 32
>>> celsius2fahrenheit(37.777777777778)
100.0000000000004
0 件のコメント:
コメントを投稿