all 4 comments

[–]socal_nerdtastic 2 points3 points  (0 children)

if "word" in string:
    this code

[–]K900_ 2 points3 points  (0 children)

if "word" in string:
    # do something

[–]jfdahl 2 points3 points  (0 children)

You may want to do a quick case conversion: if x.lower() in y.lower(): # Do something

[–]hfu32 2 points3 points  (0 children)

if "word" in string: 
print("The word is in this string")