Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I don't understand the Deck class in Milestone Project 2 #39

Open
MDSvensson opened this issue Mar 16, 2018 · 1 comment
Open

I don't understand the Deck class in Milestone Project 2 #39

MDSvensson opened this issue Mar 16, 2018 · 1 comment

Comments

@MDSvensson
Copy link

In particular what is bold here:

def __str__(self):
        deck_comp = ""
        for card in **self.cards**:
            **deck_comp += " " + deck_comp.__str__()**

        return "The deck has" + deck_comp

self.cards - how is self.cards known?
deck_comp.str() seems like a method for the general string function?

Thanks in advance.

A frustrated user.

@priyansh14
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants