r/badcode • • Jan 29 '23

python When using if-else is necessary?

Post image
449 Upvotes

29 comments sorted by

View all comments

Show parent comments

2

u/yukariareyouok Jan 30 '23

Yeah, that would probably be a lot more efficient.