10 lines
295 B
Python
10 lines
295 B
Python
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 |