Advertisement
Guest User

Untitled

a guest
May 24th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. def is_2_pair(self):
  2. pair = 0
  3. counts = self.count_card_values()
  4. for number in counts:
  5. if number == 2:
  6. pair += 1
  7. if pair == 2:
  8. return True
  9. else:
  10. continue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement