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!!
LabB: 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 forloops 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 forloops to draw a rightfacing righttriangle. Finally, use a last pair of nested forloops to draw a righttriangle facing the left. See the examples below for reference.
The user input is indicated in bold.
Sample Output #:
Please enter a value for the size:
This is the requested x box:
This is the requested rightfacing x righttriangle:
This is the requested leftfacing x righttriangle:
Sample Output #:
Please enter a value for the size:
This is the requested x box:
This is the requested rightfacing x righttriangle:
This is the requested leftfacing x righttriangle:
Sample Output #:
Please enter a value for the size:
This is the requested x box:
This is the requested rightfacing x righttriangle:
This is the leftfacing requested x righttriangle:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
