A device that sucks bc mien broke
C) fair use
Hope this helps... mark as Brainliest plz
Answer:
In python Language:
cardNotation = raw_input("Enter card notation: ")
# Create a dict for values
cardColors = {"D": "Diamonds",
"H": "Hearts",
"S": "Spades",
"C": "Clubs"}
cardNumberValues = {"A": "Ace",
"J": "Jack",
"Q": "Queen",
"K": "King",
"2": "Two",
"3": "Three",
"4": "Four",
"5": "Five",
"6": "Six",
"7": "Seven",
"8": "Eight",
"9": "Nine",
"10": "Ten"}
# Handle cases when 10 comes in input
if len(cardNotation) == 3:
number = cardNotation[:2]
color = cardNotation[2:]
print cardNumberValues.get(number) + " of " + cardColors.get(color)
elif len(cardNotation) == 2:
number = cardNotation[:1]
color = cardNotation[1:]
print cardNumberValues.get(number) + " of " + cardColors.get(color)
else:
print "INVALID VALUE"
Okay u have to use my teqnieq and search it up because i said so and it wil get u the right answer