0
Hey, why does this not work?
7 Answers
+ 6
Nothing. pop() will return the last element from the list. You can add an index to get the element with that index, for example .pop(0) will return the first element, .pop(5) will return the sixth element etc., but the list is shuffled anyway so it doesn't make any difference
+ 3
You try to remove an element (0) from a list that's not in the list
+ 3
You're welcome! I edited my answer. Try playerHand.append(cards.pop())
+ 2
The first character or the first card? Try cards.pop(). That will return a card and remove it from the list.
You can even do playerHand.append(cards.pop())
+ 1
Thanks! And how to I add the first character to the playerHand list?
0
How do I remove the first character then?
0
What should I add in those brackets?