Python 8.1 : Questionnaire v1

Welcome to a new section of the Python course. After spending some time on functions, we are going to use them in a small, self-contained project: a quiz application, "questionnaire v1". The goal is to keep practising on the building blocks we already know - loops, variables, conditions and functions - by combining them inside a single, slightly larger program than before.

Creating the project

In the IDE we create a new Python project and name it questionnaire_v1 so it is easy to recognise later in the list of projects. As usual, when the IDE generates the default sample file, we select everything inside with Ctrl + A and remove it. We want to start from a completely empty editor and write the program ourselves, without leftover code that has nothing to do with the quiz.

This very first version will be intentionally simple: a few hard-coded questions, possible answers and a way for the user to type their choice. Once that works, we will progressively improve it by extracting a reusable function for asking a question and by adding a score system, exactly like we did for the math game. In the next video we will write the first exercise of the quiz itself.

Summary

Python Lesson 8.1 introduces a practical questionnaire project designed to reinforce essential programming concepts. Students will practice implementing loops, variables, conditional statements, and functions within a real-world application context. The lesson guides learners through creating a new project from scratch, providing hands-on experience with fundamental Python skills developed in previous sections of the course.

Key points

  • Build a questionnaire application as a practical Python project
  • Practice core concepts: loops, variables, conditions, and functions
  • Learn to structure and organize a new Python project from the ground up
  • Reinforce understanding of control flow and variable management
  • Apply functions to modularize questionnaire logic and improve code organization

FAQ

What are the main programming concepts covered in this questionnaire project?

The project focuses on practicing loops, variables, conditional statements, and functions—key building blocks for Python development covered earlier in the course.

Is this lesson suitable for beginners?

Yes, this is a practical exercise designed to reinforce fundamental Python concepts through hands-on project work, making it ideal for learners new to programming.

What will I build in this lesson?

You'll create a questionnaire application from scratch, combining loops, conditions, variables, and functions to create a functional interactive project.