how to check for a charachter in string python code example
Example 1: check if anything in a list is in a string python
y = any(x in String for x in List)
Example 2: check for double character in a string python
count = {}
for s in check_string:
if s in count:
count[s] += 1
else:
count[s] = 1
for key in count:
if count[key] > 1:
print key, count[key]