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

letter_game for python version 2?

When I run the program, 2 issues:

  1. The underscores and good_guess letters display as block: each is on it's own line.
  2. If I guess the right answer, the program doesn't register it. All the underscores are replaced with letters, but there's no message that says "You win!...".

I'm betting this is because I'm using python 2, and the course is with python 3. What do I need to make it work with python 2?

1 Answer

Figured it out. Print isn't a function in Python 2.

http://stackoverflow.com/questions/2456148/python-print-end