Hands-on lab

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

Create a small interactive script that asks for two fictional details, stores them in variables, and prints a summary message.

Reveal step-by-step solution

1. Create a file named clinic_summary.py. 2. Use input() to ask for a department name and a number of pending appointments. 3. Convert the appointment count to an integer if you plan to use it as a number. 4. Store each answer in a clearly named variable. 5. Print a message such as 'Radiology has 12 pending appointments today.' 6. Test with at least two different fictional values. 7. Fix any conversion or spelling errors and rerun.