if card[0] == 'J':
    cardValue = 11
elif card[0] == 'Q':
    cardValue = 12
elif card[0] == 'K':
    cardValue = 13
elif card[0] == 'A':
    cardValue = 14
else:
    cardValue = card[0]
проблемы Python со сравнением целых чисел