The challenge is to write a code that counts the number of X’s and O’s in a string, and if they are equal then it should return True and if they are not then it should return False. The code should also return True if there are no X’s and O’s. Below is the code I tried:
Could someone identify what is wrong with my code? I’m trying to use only what I have learned so far. Thanks in advance!