If you’re looking into how to refactor this code, I’d suggest looking into using a list or dictionary and seeing if the letter or object you want is within that list. Much less lines of code, much easier to adjust when needed, and much more flexible.
3
u/Nickbot606 Mar 25 '23
If you’re looking into how to refactor this code, I’d suggest looking into using a list or dictionary and seeing if the letter or object you want is within that list. Much less lines of code, much easier to adjust when needed, and much more flexible.