Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Basic Object-Oriented Python Creating a Memory Game Game Class Part 1

game.py

I've copied the code from the video but when I run python game.py all it doesn't return the 'A1, B1, C1' etc. I'm not getting an error in the terminal either, very confused.

Steven Parker
Steven Parker
231,268 Points

It's important to share your code so it can be seen by people answering. You might want to take a look at this video about Posting a Question. And for when your question refers to something you are doing in a workspace, you may also want to view this one about sharing a snapshot of your workspace.

https://w.trhou.se/sr8a2qcsvg

here is my screenshot, forgot to add it yesterday, sorry

1 Answer

Rohald van Merode
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Rohald van Merode
Treehouse Staff

Hi samar shah 👋

Thanks for sharing your workspace! 🙂 Looks like your issue is happening on line 2 of your game.py file. There seems to be an _ missing from your __init__. Adding that should fix the issue and your code should start working as expected 😃

Hope this helps!

LOL, thanks alot!!! can't believe I missed that!