0
Why does line 21 not work?
7 Answers
+ 7
If you want to deal all those cards to both the player and computer, here's some hints:
cards.remove(cards[0]) # there is no zero in the cards
EDIT: Raphael this will remove the first item of the list. You may replace it with taking the last one -- it's irrelevant here -- by using .pop()
playerCards.append(moveCard) # += will add elements of each string not the string itself
computerCards.append(moveCard) # same as above
devide = 1 # not ==, as this is a comparison, not assignment
devide = 2 # same as above
+ 12
Share your code please :)
+ 2
Akib Reza Wow very funny, if that makes you laugh, so I feel bad for you
+ 1
Best question i have seen till nowđđđđđđ
+ 1
Akib Reza: why what's so funny?
+ 1
And what do I do if I want to remove the first item on the list?
- 2
@Raphael shay You didn't post the code earlier and asked that weird question. Why wouldn't it be funny.