Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Flask Basics Character Builder Loop Nested Items

Josh Keenan
Josh Keenan
19,426 Points

I do not know why this is wrong lil help?

Doing me some flask and try this code out, get 'syntax error: line 1, column 54'. help me please, no clue where I went wrong. TEACHERS is a dictionary containing a set of teachers names.

here's some code!

<ul class="teachers"> {% for teacher in TEACHERS.items() %} <li for='teacher'><h2>{ teacher }</h2></li> {% endfor %} </ul>

1 Answer

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

To print things in Flask templates, we use {{ and }}. You only have { and }.

Josh Keenan
Josh Keenan
19,426 Points

Thanks Kenneth, good job on the python course by the way, quick request here. Kivy application development or more tkinter. Thank you for everything.

Kenneth Love
Kenneth Love
Treehouse Guest Teacher

Thanks, Josh Keenan!

You're not the first to ask for Kivy. I'm gonna have to do some learning before I can teach it, though.

As or more tkinter, maybe!