yourString = "string" if "s" in yourString: print("There is an S in your string") if "s" not in yourString: print("There is no S in your string")