Attendance Tracker
Python
15 pts
Attendance Tracker
The list attendance records the name of each student who came to the Python club, one item per visit.
- Create
selam_visits: how many times"Selam"appears. Usecount(). - Create
first_hana: the index of the first"Hana". Useindex().
Print both. Expected output:
3 2
Checklist
- Keep the list
attendanceunchanged. - Create
selam_visits, the number of times"Selam"appears. - Create
first_hana, the index of the first"Hana". - Print
selam_visitsand thenfirst_hana.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
