Python in der Linie bedingte Aussage
>>> age = 15
>>> print('kid' if age < 13 else 'teenager' if age < 18 else 'adult')
teenager
Trained Tuna
>>> age = 15
>>> print('kid' if age < 13 else 'teenager' if age < 18 else 'adult')
teenager
fruit = 'Apple'
isApple = True if fruit == 'Apple' else False