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 aloneShared 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
The user enters student names one by one.
For each student, the user enters whether they are present or absent.
The program stores the information in lists.
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
Step 1
Ask for a student name
Use input() to collect a student name.
- 2
Step 2
Store the student name
Add each entered name to the student_names list.
- 3
Step 3
Ask for attendance
Ask whether the student is "present" or "absent".
- 4
Step 4
Repeat for more students
Use a loop so the user can keep entering names until they type "stop".
- 5
Step 5
Print the attendance summary
Loop through the lists and print each student with their attendance status.
More to explore
Want a different challenge?
Browse more guided projects, or come back and start this one whenever you are ready.