Author

J. Ryan Hall Avatar

J. Ryan Hall

Latest articles

by

  • , ,

    Testing membership and empty strings

    2 min read

    I was working on one of the exercises on the Pybites platform (Bite 29) and encountered a situation I didn鈥檛 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鈥檛 tell why one failed so I researched why that was and would like to share it. Note – if you haven鈥檛 completed the Bite, the solution might be partially spoiled below so maybe you want to do the exercise before reading on. Membership testing is…