python3 check string for single character code example
Example 1: how to check if all characters in string are same python
s == len(s) * s[0]
Example 2: can you look for specific characters in python
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")