Warning! It seems that you are using Dodona within another webpage, so not everything may work properly. Let your teacher know so that he can solve the problem by adjusting a setting in the learning environment. In the meantime, you can click this link to open Dodona in a new window.
Warning! The page was not fully loaded, probably because of a network issue. It could be that not all functionalities work as expected. Please try reloading the page.
Python exercise
Temperatuurconversie
Sign in to hand in your solution and get feedback.
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.")