I have the python code which needs to reduce the if condition in single line or less number of lines.
if not Apple: error = \'Missing "Apple"\' if n