Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Python Basics (2015) Letter Game App Letter Game Refinement

1 Answer

Chris Howell
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Chris Howell
Python Web Development Techdegree Graduate 49,610 Points

Hey George Lugo

So from your workspace for letter_game.py, I am assuming that is the one because of the related video you posted this from.

It seems you have a number of errors: When I forked your Workspace over to one of mine.

While the .py file is open in the bottom right corner of the file, just above the shell inside workspaces. You will see a Python and a Spaces 2 which should be changed to Spaces 4 if its not already. This means you may have to go back through every line and re-indent all code blocks where the was 2 spaces to 4. Just switching this from 2 to 4 didnt change it for me.

Also inside your def draw method you are missing a closing Parenthesis on len(list(secret_word) and a : at the end of that.

You are also missing an _ for your good_guesses elif check.

once you get your code cleaned up, reindented and fix those. You should be able to run the code inside that workspace. And if you have anymore Errors or Fails it will tell you exactly what line is failing on and you can look around those lines to look for syntax errors :)