Temperatuurconversie

Sign in to test your solution.
celsius1 = float(input("Wat is de eerste temperatuur in °C?")) celsius2 = float(input("Wat is de tweede temperatuur in °C?")) celsius3 = float(input("Wat is de derde temperatuur in °C?")) celsius4 = float(input("Wat is de vierde temperatuur in °C?")) celsius5 = float(input("Wat is de vijfde temperatuur in °C?")) fahrenheit1 = celsius1 * 9 / 5 + 32 fahrenheit2 = celsius2 * 9 / 5 + 32 fahrenheit3 = celsius3 * 9 / 5 + 32 fahrenheit4 = celsius4 * 9 / 5 + 32 fahrenheit5 = celsius5 * 9 / 5 + 32 print("De temperatuur op locatie 1 is", celsius1, "°C of", round(fahrenheit1, 1), "°F.") print("De temperatuur op locatie 2 is", celsius2, "°C of", round(fahrenheit2, 1), "°F.") print("De temperatuur op locatie 3 is", celsius3, "°C of", round(fahrenheit3, 1), "°F.") print("De temperatuur op locatie 4 is", celsius4, "°C of", round(fahrenheit4, 1), "°F.") print("De temperatuur op locatie 5 is", celsius5, "°C of", round(fahrenheit5, 1), "°F.")
You can submit as many times as you like. Only your latest submission will be taken into account.
Sign in to test your solution.

  Python sandbox

This window allows you to run Python code without installing a thing. The code you write here is not automatically submitted to Dodona.

Test case being debugged