Hands-on lab

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

Build a small rule-based script that takes a fictional queue number and prints one of three labels: low, moderate, or high.

Reveal step-by-step solution

1. Create queue_checker.py. 2. Set a sample queue count or ask for input and convert it to an integer. 3. Write if queue > 15 for high, elif queue >= 6 for moderate, else for low. 4. Print a clear message in each branch. 5. Test with at least three values: 3, 10, and 20. 6. Adjust the thresholds if needed and rerun.