How to reduce multiple if not condition in single line or less code in python?

前端 未结 0 1954
无人共我
无人共我 2021-02-09 19:29

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         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题