aboutsummaryrefslogtreecommitdiff
path: root/challenge-011/lubos-kolouch/python/ch-1.py
blob: 21e817e97cac33d9d10f151df444519fb8405fbd (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env python
# -*- coding: utf-8 -*-

for fahrenheit in range(-100, 213):
    celsius = (fahrenheit - 32) * 5 / 9
    if fahrenheit == celsius:
        print(
            f"The equal point in the Fahrenheit and Celsius scales is {fahrenheit} °F and {celsius} °C."
        )
        break