Coding a deck of cards

Hello. I’m trying to make a deck of cards and get these little errors in the code.

The first error is because you used apppend instead of append (count the p's).

The second is because you didn’t include the argument label. You should have:

var theCard = cardsInfo(playingCard: singleCard)

Oh, and for the future…

Please post your actual code, not screenshots. This makes it easier for others to copy the code and test out solutions to issues. With screenshots, we would need to retype everything. (This issue wasn’t one where that was necessary, but that might not always be the case.) It’s also sometimes easier to read because screenshots can make the text really tiny.

You can paste the code text in with ``` on the line above and the line below and it will format the code nicely for display on the forums.

1 Like

Thank you for your help & for the tip with sending the code. I‘ll do this in the future