[Solved] Choosing the right XOR in Python:
Which would you use in this code? The long one that I commented out? The one I used(rather an equivalent of xor) ? The bitwise one that I also commented out? I did this simple exercise (from a website) which I realised used XOR as I was coding it. I haven't advanced in Python Core as far as the Pythonicness module, since I am trying to find and do exercises about previous topics, and this exercise was in that site's conditionals section, and as I said I bumped into XOR while I was doing it. Was looking to find the syntax to shorten it, and there were StackOverflow pages talking about XOR and Pythonicness, which led me to ask the question. The code is added and you can see the exercise statement (paraphrased). If you think I should just go through my SoloLearn modules, please let me know about that, too. Thank you. https://code.sololearn.com/c0QrjWYnmQ8u/?ref=app