Answers for "how to check if letter and not repeated in a string python"

2

how to check if all characters in string are same python

s == len(s) * s[0]
Posted by: Guest on May-14-2020
0

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]
Posted by: Guest on May-24-2020

Code answers related to "how to check if letter and not repeated in a string python"

Python Answers by Framework

Browse Popular Code Answers by Language