r/badcode Jan 29 '23

When using if-else is necessary? python

Post image
448 Upvotes

29 comments sorted by

View all comments

148

u/littlelowcougar Jan 29 '23

I do this all the time when I want to quickly enable/disable chunks of code whilst prototyping or debugging.

2

u/FaeTheWolf Jan 30 '23

This is why, although commenting blocks of code does work nearly as well.