How to properly define a return string within a for loop for a Class using OOP in Python

I want to create a card deck using OOP in Python. I have two classes, Card and Deck, and I want to print all cards in a deck. However, I am not sure how to handle this problem because I can print the values (or rather return a string) in the Card class, in the… Read More How to properly define a return string within a for loop for a Class using OOP in Python