Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

def f(x) python

def fahrenheit(T_in_celsius):
    """ Gibt die Temperatur T_in_celsius in Grad Fahrenheit zurück """
    return (T_in_celsius * 9 / 5) + 32
for t in (22.6, 25.8, 27.3, 29.8):
    print(t, ": ", fahrenheit(t))
Source by www.python-kurs.eu #
 
PREVIOUS NEXT
Tagged: #def #python
ADD COMMENT
Topic
Name
5+1 =