How to write a function for highest denomination of any card in the hand.The denominations from lowest to highest are 2, 3,4,5,6,7,8,9,10,'jack,''queen','king','ace'.For example,
highestDenomination({(6,'club'),(6,'heart'),('queen','heart'),('queen','diamond'),(2,'heart')})denotes‘queen’.
dtripath
0
Newbie Poster
Recommended Answers
Jump to PostHere is another approach ...
'''card_deck_5.py create a deck of cards, shuffle and draw a hand of five cards suit: club=C, diamond=D, heart=H spade=S rank: ace=A, 10=T, jack=J, queen=Q, king=K, numbers=2..9 ace of spade would be AS, 8 of heart would be 8H and so on ... …
All 2 Replies
TrustyTony
888
pyMod
Team Colleague
Featured Poster
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.