Python Flask Basics Character Builder Loop Nested Items

Josh Keenan
Josh Keenan
19,311 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,311 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!