No no no!
Write a program that asks the user for a task, a phone number, and a person. It outputs a message saying they shouldn't do the task that way.
Sample I/O:
- Task advisor
- ==== =======
- What is the task? clean a kangaroo
- Phone number? 999-999-9999
- Who should you talk to? Melinda
- No, no, no! You can't clean a kangaroo yourself. Call 999-999-9999, and ask for Melinda.
- Output a heading to start (the Task advisor thing), as in the I/O sample
- Include spaces and punctuation as shown.
- Use one
print
statement to generate the output (you can use extra print statements for the heading Task advisor stuff). Build the output into a variable (with+
, andprint
the variable).
Upload a zip of your project folder.
Wrestling announcements
Wrestling announcers introduce wrestlers by reading cards, with text like:
- In the red corner, it's PAULA 'MAD TALKER' POUNDSTONE!
The corner is in the first phrase. The second phrase has the wrestler's first name, wrestling name, and last name. That part is in uppercase, so the announcer remembers to SHOUT. And there's a bang (!) at the end.
- Spacing is as shown.
- The corner name is lowercase.
- The first, last, and wrestling names are uppercase.
- The quotes and bang are there.
Your program should ask the user questions, and assemble the message. Here's some sampple I/O (input/output):
- First name? Paula
- Last name? Poundstone
- Wrestling name? Mad Talker
- Corner? red
- In the red corner, it's PAULA 'MAD TALKER' POUNDSTONE!
More:
- First name? Elle
- Last name? cordova
- Wrestling name? funny bone
- Corner? ORANGE
- In the orange corner, it's ELLE 'FUNNY BONE' CORDOVA!
Hints:
thing.strip().lower()
will strip excess (leading and trailing) spaces from the string variablething
, and convert it to lowercase.thing.strip().upper()
converts to uppercase.
Use only one print
statement. Assemble the message in a variable, and output that. See this lesson for an example.
Upload a zip of your project folder.