r/badcode •

[deleted by user]

[deleted] — view deleted post

0 Upvotes

92 comments sorted by

View all comments

Show parent comment

2

u/Jonno_FTW shameless Jun 20 '19

The use of global makes it especially bad.

2

u/BS_BlackScout Jun 20 '19 edited Jun 20 '19

I am not particularly great at Python but while making this mess it occurred that the variable was out of scope so I remembered that I could do that global thing and thought: "Well, it's meant to be shit so why bother"