You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for letter in string1:
if string1.count(letter)>=2:
if letter not in list1:
list1.append(letter)
for item in list1:
if item!= " ":
print(item,string1.count(item))
count_repeated_letter('letter has 1 e and 2 e and 1 t and two t')
The text was updated successfully, but these errors were encountered:
def count_repeated_letter(string1):
list1=[]
count_repeated_letter('letter has 1 e and 2 e and 1 t and two t')
The text was updated successfully, but these errors were encountered: