Jul-20-2017, 10:35 PM
The first if statement, with "in s" after each string works. However, the second if statement, combining the strings with parentheses does not.
It seems I shouldn't have to repeat "in s." Is there a way?
It seems I shouldn't have to repeat "in s." Is there a way?
s='Bob' 'Tom' if 'Tom' in s or 'Bob' in s: if ('Tom' or 'Bob') in s: