Question: Need help making a program that creates pictures using the python language: Please enter a command: bad Invalid command Please enter a command: hElP Acceptable

Need help making a program that creates pictures using the python language:
Please enter a command: bad
Invalid command
Please enter a command: hElP
Acceptable commands: help, quit, square, box, diagonaldown, diaonalup, checkerboard
Please enter a command: square
Please enter a size between 1 and 10: -1
The value -1 is not in a valid range.
Please enter a size between 1 and 1016
The value 16 is not in a valid range.
Please enter a size between 1 and 10: 5
*****
*****
*****
*****
*****
Please enter a command: box
Please enter a size between 3 and 10: 2
The value 2 is not in a valid range.
Please enter a size between 3 and 10: 5
*****
**
**
**
*****
Please enter a command: diagonaldown
Please enter a size between 3 and 10: 7
*
*
*
*
*
*
*
Please enter a command: diagonalup
Please enter a size between 3 and 10: 7
*
*
*
*
*
*
*
Please enter a command: checkerboard
Please enter a size between 5 and 10: 9
*******
******
*******
******
*******
******
*******
******
*******
Please enter a command: quit

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 Programming Questions!