poker hands python

Problem 2: Poker Hands
Using the generators and iterators we developed in class answer the following questions with Python
code [you can validate your answers against the theoretical answers as was shown above and I will also
give you bonus points):
1. How many unique 2-card hands can be dealt in a game of Texas Hold Em poker?
2. What is the probability that the cards are the same rank?
3. What is the probability that the cards are the same suit?
4. How many unique 5-card hands can be dealt in a game of 5-Card stud? (this might take a long to
compute, so look to the notebook for a short cut)
5. What is the probability of a Flush ( all the same suit)?
6. What is the probability of 2-of-a-kind, 3-of-a-kind, 4-of-a-kind?
7. [Computationally find probabilities for all poker hands and I will replace any of your old
homework with a perfect score! You need to extend and implement the generators and
iterators we used in class for this – no copy-pasta from the net]
Five of a kind
Straight flush
Four of a kind
Full house
Flush
Straight
Three of a kind
Two pair

Last Completed Projects

topic title academic level Writer delivered