For shame, I recently did something like this, but only because a/ I have been programming for 3 weeks and b/ told chat gpt to edit my code. Either way, we both failed. Use arrays people!
Yes there is and, at least on reddit, you'd have people defending this code for no reason other than it works and the only bad code is code that doesn't work or something stupid like that.