Daily Python Projects

Daily Python Projects

Build a survey web app with Flask

Level 3: Real-World

Ardit Sulce's avatar
Ardit Sulce
Jun 11, 2024
∙ Paid

Project Brief

Today’s task is to create a webpage that contains a survey people can fill in. This can be useful to get feedback from people on a certain topic. You can use any Python web framework. However, the code in the solution section uses Flask to build the webpage.

Expected Output

Here is how the webpage should look more or less:

When the user presses “Submit”, two things should happen. First, the browser should show a “Thank you” page:

Second, the program should add the user’s data in a row inside a CSV file inside the project. Here is what my CSV file will look like:

Keep reading with a 7-day free trial

Subscribe to Daily Python Projects to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Ardit Sulce · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture