AssignmentsWeek 01 · FoundationsEmail signature builder
wk01.p5Practice exerciseWeek 01 · FoundationsOpen · due in week 1

Email signature builder

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.

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.

  1. Ask the user for their full name, role or programme, organization, email, and phone — one input() per question, each stored in its own variable.
  2. Print a 5-line signature using all five answers.
  3. At least one printed line must combine two variables in a single print() call (for example, email and phone together).
  4. 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, like print(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 together

How we'll grade it

Four checks, four points. Three or above is passing — we'll ask you to revise anything we can't tick.

CheckWhat we look forPt
It runsStarts cleanly. Asks all five questions in order.1
Uses inputsEvery printed line uses something the user actually typed.1
Two variables on one lineAt least one `print()` combines two variables in a single call.1
Readable outputBlock looks like an email signature you could actually paste into Gmail.1
Ready?
Hand it in
You can submit a draft and revise later if you're not done.
Begin submission →