Hands-on lab

Python for Beginners: Build Practical Software Skills with Hospital-Themed Projects
Lesson Content
0% Complete

Create a loop-based script that prints three fictional department reminders and counts how many reminders were sent.

Reveal step-by-step solution

1. Create department_reminders.py. 2. Make a list with three fictional departments. 3. Set a counter to 0. 4. Use a for loop to go through each department. 5. Print a reminder message for each one. 6. Increase the counter by 1 inside the loop. 7. After the loop, print the total reminders sent. 8. Test and confirm the output matches the number of departments.