python if else in one line

python

'Yes' if fruit == 'Apple' else 'No'