Question: Ask the user for a custom message and then print it out with a border of ' @ ' surrounding it . Use the input

Ask the user for a custom message and then print it out with a border of '@' surrounding it.
Use the input function to ask the user for a message and store it in the variable a. Use string multiplication and the length of a to assign the top and bottom border of the box to the variable top (be sure to add 4 to the length to account for the left and right border). Print top, the message with a '@' and a '' on both sides, and the top again. When you have you program working, test it with the message 'big message!'.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!