I have sadly created terrible examples 👎
I should have never posted code that has:
button is 'x'
The only time I should be using is is with None
I thought it always worked on literal strings, but alas, I got BURNED on it badly. It doesn't work. I made a bad mistake and still haven't cleaned it up very well.
While your program will work, I suggest changing the is to ==.
I have sadly created terrible examples 👎
I should have never posted code that has:
button is 'x'The only time I should be using
isis withNoneI thought it always worked on literal strings, but alas, I got BURNED on it badly. It doesn't work. I made a bad mistake and still haven't cleaned it up very well.
While your program will work, I suggest changing the is to ==.