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
Elton Tate
5,763 PointsI have a set of questions I would like the user to answer. How do I update the index number to populate new questions?
I am trying to access the python dictionary I created in another file. I imported that dictionary into app.py, but am having a hard time understand how do I iterate through that dictionary from a user response. I want the user to click the submit button, which will then store the results and update the index value. But I am having a hard time figuring out how to do that with Flask. Do I create a def to handle it, or do I manipulate on the front end side (browser side)?