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) Number Game App Number Game Introduction

Syntax Error for the "if guess" line when I copy this code verbatim (minus the comments) into Workspaces.

I'm getting a SyntaxError when I copy the code verbatim (minus # comments) into Workspaces, on the following line (line 8 when you put it in without # comments):

if secret_num == guess:

What's wrong with it?

Hello there Jesse,

The code looks fine. Can you include all of the code please? The error might be coming from somewhere else. Also, please look at the Markdown Cheatsheet so you can format the code properly. Look for the cheatsheet by scrolling all the way down this page and look below the answer field.

Thanks!