top of page


Class Attendance Checker


1 Easy

8 Practise Exam Questions


Write a program that takes a list of student attendance (represented as 'P' for present and 'A' for absent) and outputs the total number of present and absent students.

Inputs: List of attendance ('P', 'A'). Outputs: Number of present and absent students. Calculations: Count occurrences. Variables: attendance, present, absent.

Need help with your programming skills?

If you need more help than just independent practise, then we're here for you. Book a 1:1 with us and we will be able to guide you to becoming a proficient programmer who can tackle any of the challenges an exam board can throw at you.

bottom of page