Testing membership and empty strings
·
·
I was working on one of the exercises on the Pybites platform (Bite 29) and encountered a situation I didn’t understand. I needed to check a set of inputs to see if they were alphanumeric or not as part of the solution to the exercise. I succeeded in all but one test, but I couldn’t tell why one failed so I researched why that was and would like to share it. Note – if you haven’t completed the Bite, the solution might be partially spoiled below so maybe you want to do the exercise before reading on. Membership testing is…