Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In Python 3: (display_list_list) Create a program that displays a textual menu in console mode that allows the display of a pattern based on stars
In Python 3:
(display_list_list) Create a program that displays a textual menu in console mode that allows the display of a pattern based on stars and spaces from a choice of pattern made by the user. The 4 choices of patterns are:
(s): 'F' for window shape
'L' for the shape of Losange
'C' for wedge shape
And 'X' for the X shape
Constraints to respect: ? You must display a menu in console mode to enter the dimension and then the letter of the pattern. ? Define a list (of 2 dimensions) from a dimension entered by the user and fill it with the chosen pattern. The entered dimension must be an odd value between 5 and 39 inclusive. ? Entering the dimension must be validated to the user with feedback. That said, if the dimension is not valid, your program must ask the user again, a dimension, until a valid value is obtained. ? The entry of the letter must be validated to the user with feedback. That said, the only accepted letters are: (F, L, C and X) Otherwise, for any other letter, your program must ask again the user, a letter, until a valid letter is obtained . ? After entering the values ??"dimension and letter", you must fill the list, previously instantiated, by the chosen pattern. The use of loops and alternatives will be the basis of the algorithms to create the desired pattern in the list. ? After displaying the pattern, it must be possible to restore a dimension and redo a pattern as many times as you want.
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