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

Diego Salas Polar
Diego Salas Polar
21,431 Points

What is the code that shows all the bad guesses that you guessed in the letter game app in Python Basics?

My letter game app isn't showing the bad guesses I typed, and I would like to know what is wrong with my letter game app.

Can you share your code?

Chris Freeman
Chris Freeman
Treehouse Moderator 68,423 Points

Or perhaps share a link to your workspace snapshot...?

Diego Salas Polar
Diego Salas Polar
21,431 Points

Here the link to my code: https://teamtreehouse.com/workspaces/15029432. Just copy and paste and thanks for helping me out Chris and Dan. The name of the file is letter_game.py.

Chris Freeman
Chris Freeman
Treehouse Moderator 68,423 Points

"Bummer! Page Not Found." Is the link you posted for a snapshot? We can not directly see your actual workspace.

Diego Salas Polar
Diego Salas Polar
21,431 Points

I already made the snapshot, do I just copy and first the link and if so here's the link: https://w.trhou.se/jy86f9gip8. The other one I did was copy and paste the URL of my workspace. This is my first time using snapshot.

Diego Salas Polar
Diego Salas Polar
21,431 Points

Thanks Chris for helping me out! It works. :)

1 Answer

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 68,423 Points

in your bad letter loop you are not printing 'letter'. Add letter to the print statement on line 39:

    for letter in bad_guesses:
        print(letter, end=' ')
    print('\n\n')