Question: Python please!! Lab 5 B: The box Write a program that asks the user for a value. Based on the value given to the program

Python please!!
Lab5B: The box
Write a program that asks the user for a value. Based on the value given to the program by the user, use nested for-loops to draw a box that has the length and the width of the value specified by the user. Afterwards, use the same value and another pair of nested for-loops to draw a right-facing right-triangle. Finally, use a last pair of nested for-loops to draw a right-triangle facing the left. See the examples below for reference.
The user input is indicated in bold.
Sample Output #1:
Please enter a value for the size: 4
This is the requested 4x4 box:
****
****
****
****
This is the requested right-facing 4x4 right-triangle:
*
**
***
****
This is the requested left-facing 4x4 right-triangle:
*
**
***
****
Sample Output #2:
Please enter a value for the size: 5
This is the requested 5x5 box:
*****
*****
*****
*****
*****
This is the requested right-facing 5x5 right-triangle:
*
**
***
****
*****
This is the requested left-facing 5x5 right-triangle:
*
**
***
****
*****
Sample Output #3:
Please enter a value for the size: 8
This is the requested 8x8 box:
********
********
********
********
********
********
********
********
This is the requested right-facing 8x8 right-triangle:
*
**
***
****
*****
******
*******
********
This is the left-facing requested 8x8 right-triangle:
*
**
***
****
*****
******
*******
********

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!