Flask. problem with for loop inside the route function

Hello everyone,
I’m facing a problem while working on a first project in the course “Learn Flask”. I have to make for loop inside the route function. Although I’m pursuing the instructions and googling the syntax for the for loop writing for flask, still can not run the code properly. This is the link of my project page: https://www.codecademy.com/courses/learn-flask/projects/adopt-a-pet
Please support.

Regards,

Giorgi Gvasalia

Unfotunately other users have no way of viewing the content of your project, you’ll probably want to make your code accessible either by hosting it on a website, e.g. pastebin/github/repl codecademy workspace or similar. If it’s short then consider posting to the forums after viewing- How do I format code in my posts?