DEV Community

Discussion on: 3 Common Mistakes that Python Newbies Make

Collapse
 
martinhaeusler profile image
Martin Häusler

I'm not a Python programmer, but in general I find return statements which produce a boolean value increadibly hard to read, unless the returned value is a constant (return true / return false) or an aptly named variable. I personally try to avoid return statements where the right side contains any boolean operators.