0

Say my list is ['a', 'a', 'b'] how would I tell that the letter a appears twice? I know it's probably simple but I can't get my head around it...

Qwertykey
  • 21
  • 5

1 Answers1

0
>>> a = ['a', 'a', 'b']
>>> a.count('a')
2
syntaxError
  • 896
  • 8
  • 15