What you'll build
Ask for the five lines of an email signature, then print a clean block you could paste into Gmail. Pure input, variables, and printing — no math, no conversions.
Requirements
The must-do parts. If any are missing, we'll ask you to take another pass.
- Ask the user for their full name, role or programme, organization, email, and phone — one
input()per question, each stored in its own variable. - Print a 5-line signature using all five answers.
- At least one printed line must combine two variables in a single
print()call (for example, email and phone together). - Treat every answer as text. No conversions needed.
Bonus, if you're feeling brave
- Print a row of dashes above and below the signature so it stands out.
- Use a
|between two variables for a polished separator look, likeprint(email, "|", phone).
Examples
What your program should look like when it runs. Lines starting with $ are typed by you; the rest is your program.
Example cell run
Full name: Amara Mensah
Role or programme: MSc Public Health
Organization: University of Ghana
Email: amara@example.com
Phone: +233 24 111 2222
---
Amara Mensah
MSc Public Health
University of Ghana
amara@example.com | +233 24 111 2222
---Where to start
Copy this scaffold into a new file. You don't have to use it — it's just a friendly nudge.
# Email signature builder
name = input("Full name: ")
role = input("Role or programme: ")
organization = input("Organization: ")
email = input("Email: ")
phone = input("Phone: ")
# TODO: print the signature lines, combining email and phone on one line
# Hint: use a comma inside print() to glue two variables togetherHow 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 | Starts cleanly. Asks all five questions in order. | 1 |
| Uses inputs | Every printed line uses something the user actually typed. | 1 |
| Two variables on one line | At least one `print()` combines two variables in a single call. | 1 |
| Readable output | Block looks like an email signature you could actually paste into Gmail. | 1 |