Start building now

Choose how you want to begin this project.

Open it privately for practice or create a shared workspace to build it together.

No setup required • Guided steps inside the editor

Private practice

Open a private editor and work through the steps at your own pace.

Start project alone

Shared workspace

Create a live session so you can teach, pair, or build the project together.

What you'll build

A program that stores student names and whether they are present or absent using lists.

What you'll learn

  • How to store related data in lists
  • How to collect repeated input from the user
  • How to loop through records and display results
  • How to organise simple classroom data in Python

How it works

1

The user enters student names one by one.

2

For each student, the user enters whether they are present or absent.

3

The program stores the information in lists.

4

It prints a summary of the attendance records at the end.

Build path

These steps appear inside the editor so you can build one part at a time.

  1. 1

    Step 1

    Ask for a student name

    Use input() to collect a student name.

    Complete in the editorHint available
  2. 2

    Step 2

    Store the student name

    Add each entered name to the student_names list.

    Complete in the editorHint available
  3. 3

    Step 3

    Ask for attendance

    Ask whether the student is "present" or "absent".

    Complete in the editorHint available
  4. 4

    Step 4

    Repeat for more students

    Use a loop so the user can keep entering names until they type "stop".

    Complete in the editorHint available
  5. 5

    Step 5

    Print the attendance summary

    Loop through the lists and print each student with their attendance status.

    Complete in the editorHint available

More to explore

Browse more guided projects, or come back and start this one whenever you are ready.