James Lu wrote:
I think

print("Remember to wear sunscreen!") if hot_outside unless Weather.is_raining()

Is more readable than

if hot_outside and not Weather.is_raining(): print("Remember to wear 
sunscreen!")

That's very much a matter of opinion -- I find the second version
considerably clearer.

--
Greg
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/XOOM2YNO2MEMJTFHGKRB3UOSPPJ5OVCG/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to