Code: Select all
ef area_of_triangle( bottom, height ):
area = 0.5 * bottom * height
return 'The area of a triangle with a bottom of', bottom, 'and a height of', height, 'is', area, '.'
Anstelle von: Der Bereich eines Dreiecks mit einem Boden von 2.0 und einer Höhe von 1.0 beträgt 1.0.>