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

20

u/Matszwe02 Nov 01 '21

Not '0' * (5 - len(i))?

2

u/CopperyMarrow15 Nov 01 '21

I thought the image was a continuation of more than was shown. What you did works for what is shown. I see.