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 All Together Now Branch and Loop

Camron Phillips
Camron Phillips
447 Points

Else syntax error?

I don't know how to add my code to the question. Here is a screen shot https://imgur.com/a/TMdD4mw I have a feeling it has to do with indentation but i can't figure it out. I was writing my code basically as Craig did but with different names.

1 Answer

Torben Peper
PLUS
Torben Peper
Courses Plus Student 100 Points

Try to indent in Line 36. It needs to be inside the if statement.

Camron Phillips
Camron Phillips
447 Points

That fixed the syntax error, thank you.