fruit = 'Apple' isApple = True if fruit == 'Apple' else False #vs fruit = 'Apple' isApple = False if fruit == 'Apple' : isApple = True