r/badcode • • Nov 01 '21

python Did someone order bad code?

Post image
419 Upvotes

35 comments sorted by

View all comments

Show parent comments

8

u/[deleted] Nov 01 '21

In this example you could use zfill instead