Vorlesung 2

This commit is contained in:
dev weycloud
2021-09-23 19:58:44 +02:00
parent b842733193
commit 5562abd79b
10 changed files with 170 additions and 1 deletions

10
Vorlesung 2/Uebung4.py Normal file
View File

@@ -0,0 +1,10 @@
celsius = input("Bitte geben Sie eine Temperatur in Celsius an: ") # z.b.: 32
celsius = int(celsius)
fahrenheit = celsius * (9/5) + 32
kelvin = celsius + 273.15
# Bspw. 32° Celsius:
print("Fahrenheit: ", round(fahrenheit,2)) # = 89.6
print("Kelvin: ", round(kelvin,2)) # = 305.15