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 (Retired) Ins & Outs String Formatting

Guldasta Kozhobekova
Guldasta Kozhobekova
96 Points

For some reason it keeps showing me an error on line 5. Looks like I am doing right. else:

Should not be any error because line 5 has only 2 symbols. else and : so I just typed else:

Chris Freeman
Chris Freeman
Treehouse Moderator 68,423 Points

Can you post your whole code here? Please wrap in triple-backticks-python as mentioned in the Markdown Cheatsheet

Mark Casavantes
Mark Casavantes
Courses Plus Student 13,401 Points

Chris, Guidasta might not know how to post code. I do not know how to post code to the forum.

I think this would help both of us.

I also do not know what we are to do to regarding "wrap in triple-backticks-python and mentioned in the Markdown Cheatsheet."

Are you referring to creating a multi-line comment in Python.? Where is the "Markdown Cheatsheet"?

Chris Freeman
Chris Freeman
Treehouse Moderator 68,423 Points

Good point. When one selects "Add Comment", "Add Answer", or posts an original question, directly below the text box used to write content there is the sentence: "Reference this Markdown Cheatsheet for syntax examples for formatting your post." The bold text is a link to a pop up with basic styling examples such as the backtick.

The backtick (usually next to 1 on the keyboard) is different from the single quote mark (usually next to Enter/Return key). The triple single quote is used for multi-line comments and docstrings.

Hi Mark,

There's also this forum post which has more info about posting code: https://teamtreehouse.com/forum/posting-code-to-the-forum