In any other context, aces will be ranked higher than other cards. Is ace a 1 or 11? All cards are at face value, except for the King, Queen and Jack which count as 10. An Ace will have a value of 11 unless that would give a player or the dealer a score in excess of 21; ...
aceCount=0ifpoints >21: aceCount += HAND.count('AS') aceCount += HAND.count('AH') aceCount += HAND.count('AC') aceCount += HAND.count('AD')whilepoints >21andaceCount >0: points -=10aceCount -=1returnpointselse:returnpointsdefaddScore(HAND): tempScore =0foriinHAND: tem...