One Line Test Python
fruit = 'Apple'
isApple = True if fruit == 'Apple' else False
#vs
fruit = 'Apple'
isApple = False
if fruit == 'Apple' : isApple = True
Abs Zarzis
fruit = 'Apple'
isApple = True if fruit == 'Apple' else False
#vs
fruit = 'Apple'
isApple = False
if fruit == 'Apple' : isApple = True