slotScreen = ['cherry', 'lemon', 'lemon', 'lemon', 'pirate', 'bar'] for i in slotScreen: if slotScreen.count(i) == 3: print('You got 3 of the same! You win!')