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

oliverchou
oliverchou
20,886 Points

There are bugs everywhere, anyone can help me?

here's my code(url): https://w.trhou.se/a08g1rg50v fileName: letter_game.py seems like the problem falls on the loop in the play function.

oliverchou
oliverchou
20,886 Points

the code was nearly the same with the teacher's but it just doesn't work!

2 Answers

Steven Parker
Steven Parker
231,275 Points

:point_right: It looks like you have an indentation error between lines 77 and 93.

The lines in that range seem to be indented one step too far, putting them inside the loop checking for a winner instead of after it.