The error doesn’t happen the first time random.choice() is executed in the code.
This is my code
The error goes away if I create another list like “cards2” and have the same content as the original and use it to append for the dealer cards. I really want to understand why this is not working. Help please!
New contributor
Victor Ramos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.