Python de teste de uma linha

fruit = 'Apple'
isApple = True if fruit == 'Apple' else False

#vs

fruit = 'Apple'
isApple = False
if fruit == 'Apple' : isApple = True
Abs Zarzis