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 Flask Basics Character Builder Loop Nested Items

Josh Keenan
Josh Keenan
20,315 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
20,315 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!