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 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,702 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 :)