Guest User

Untitled

a guest
Apr 23rd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. string = 'aabbcd'
  2. unique = []
  3. for char in string[::]:
  4. if char not in unique:
  5. unique.append(char)
  6. print(len(unique))
  7.  
  8. import string
  9.  
  10. s = 'AabC'
  11. s = s.lower()
  12. print(sum(1 for c in string.ascii_lowercase if s.count(c) == 1))
Add Comment
Please, Sign In to add comment