What you'll build
Ask the user the status of their scholarship application and print a tailored response. This time the comparisons are on text, not numbers — the same if / elif / else, applied to strings.
Requirements
The must-do parts. If any are missing, we'll ask you to take another pass.
- Ask the user for the status of their application. Expect one of:
submitted,under_review,accepted,rejected. - Use
if,elif, andelseto compare the status with==and print a tailored response for each of the four. - If the status is none of the four expected words, print a polite message asking the user to try again with one of the four.
- Keep all status names lowercase. No need to handle capitalisation today.
- Lowercase the user's input first so
Accepted,ACCEPTED, andacceptedall work. Look up.lower(). - After the response, print one practical next step the user could take (e.g. for
submitted, suggest setting a calendar reminder).
Examples
What your program should look like when it runs. Lines starting with $ are typed by you; the rest is your program.
Status of your application (submitted / under_review / accepted / rejected): submitted
Application is in. Set a reminder to check back in two weeks.
Status of your application (submitted / under_review / accepted / rejected): accepted
Congratulations. Reply to the offer letter promptly and start planning your move.
Status of your application (submitted / under_review / accepted / rejected): maybe
Please re-run and enter one of: submitted, under_review, accepted, rejected.Where to start
Copy this scaffold into a new file. You don't have to use it — it's just a friendly nudge.
# Application status responder
status = input("Status of your application (submitted / under_review / accepted / rejected): ")
# TODO: use if / elif / else to print a tailored response for each statusHow we'll grade it
Four checks, four points. Three or above is passing — we'll ask you to revise anything we can't tick.
| Check | What we look for | Pt |
|---|---|---|
| It runs | Asks for the status and prints a response without crashing. | 1 |
| All four statuses handled | Each of submitted, under_review, accepted, and rejected gets its own distinct response. | 1 |
| Unknown status caught | Typing something other than the four expected words gets a calm message, not silence and not a crash. | 1 |
| Reads well | Each response is one or two sentences a real applicant could read without rolling their eyes. | 1 |