DEV Community

Discussion on: 3 Common Mistakes that Python Newbies Make

Collapse
 
rpalo profile image
Ryan Palo

Yes, this is very true. I mentioned in the article that the one-line Boolean is probably getting a little long and dense. Personally, I really like the multiple return version a lot better too. I show the Boolean version to illustrate that as one option for removing nesting. Good point about doing shortest solutions as a challenge :)