Challenge
No
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.
If you were logged in as a student, you could submit a solution to this exercise.
Where referenced