Apr-03-2020, 12:54 PM
(This post was last modified: Apr-03-2020, 12:54 PM by deanhystad.)
When you built the deck you did this:
deck += [card] # [card] is a listWhen you dealt the cards you did this:
h += deck[f] # deck[f] is a stringTo prevent appending a bunch of strings together you can do like you did when making the cards or you can use list.append()
h += [deck[f]] or h.append(deck[f])I think you should build the your deck and hands using "append()", it is more familiar to programmers.