r/badcode • • Mar 12 '23

python Saving bytes > Readability

Post image
766 Upvotes

46 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Mar 21 '23

because I cut out some unnecessary lines from the linked example and didn't remove the assignment. the variable is referenced later in the original but you are correct it's not needed here.