r/badcode •

[deleted by user]

[deleted] — view deleted post

0 Upvotes

92 comments sorted by

View all comments

Show parent comment

8

u/HopelessPonderer Jun 18 '19

Pre-generating uppercase and lowercase versions of the entire string instead of converting each character one at a time. Granted it's not the ugliest code imaginable, at least it looks neat at a glance.

1

u/[deleted] Jun 18 '19

Op said it was a mistake lol

0

u/[deleted] Jun 18 '19

Would better be

if a%2 == 0 then print down[a]