Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Horizontal text is boring, and it looks so naked without a box around it! Your task is to write a program which accepts a line
Horizontal text is boring, and it looks so naked without a box around it! Your task is to write a program which accepts a line of input text from the user and displays it vertically with a box around it. The box should use - for horizontal borders, | for vertical borders, and + for corners. There should also be a space before and after each letter of the text. For example, if the user types ABC then the output should be: +---+ | A | | B | | C | +---+ The user input can be of any length, so make sure that you use iteration appropriately to print the correct number of lines. using Python to solve this question without using a function
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started