Python - Blackjack

Posted by user335932 on Stack Overflow See other posts from Stack Overflow or by user335932
Published on 2010-06-05T21:14:36Z Indexed on 2010/06/05 21:22 UTC
Read the original article Hit count: 328

Filed under:
|
|
def showCards():
    #SUM
    sum = playerCards[0] + playerCards[1]
    #Print cards
    print "Player's Hand: " + str(playerCards) + " : " + "sum
    print "Dealer's Hand: " + str(compCards[0]) + " : " + "sum"


    compCards = [Deal(),Deal()]    
    playerCards = [Deal(),Deal()]

How can i add up the interger element of a list containing to values? under #SUM error is can combine lists like ints...

© Stack Overflow or respective owner

Related posts about python

Related posts about help