If I’ve got an array of strings, can I check to see if a string is in the array without doing a for
loop? Specifically, I’m looking for a way to do it within an if
statement, so something like this:
if [check that item is in array]:
If I’ve got an array of strings, can I check to see if a string is in the array without doing a for
loop? Specifically, I’m looking for a way to do it within an if
statement, so something like this:
if [check that item is in array]: