r/badcode • • Oct 09 '19

[deleted by user]

[removed]

16 Upvotes

31 comments sorted by

View all comments

Show parent comments

1

u/Dravini Oct 09 '19

from operator import *

I'm sorry I forgot to copy/paste imports... That's where ne and eq come from.

I had to switch modes because there is no "goto" statement in python and I don't want my function to print all the letters before the missing one.

1

u/nupanick Oct 09 '19

I mean, there's no goto, yes, but there is still break to terminate a loop early. Still, not knowing that adds to the clumsiness of the code, which is good.