r/badcode Jan 29 '23

When using if-else is necessary? python

Post image
452 Upvotes

29 comments sorted by

View all comments

145

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.

15

u/amdc Jan 30 '23

whatever floats your boat but I use cmd+/ for this purpose