fork download
  1. slotScreen = ['cherry', 'lemon', 'lemon', 'lemon', 'pirate', 'bar']
  2. for i in slotScreen:
  3. if slotScreen.count(i) == 3:
  4. print('You got 3 of the same! You win!')
Success #stdin #stdout 0.02s 5740KB
stdin
Standard input is empty
stdout
You got 3 of the same! You win!
You got 3 of the same! You win!
You got 3 of the same! You win!