Question: Ask user for the shape to draw (triangle, square, circle,) and for the color to use. Show the choice of possible shapes and colors, check

Ask user for the shape to draw (triangle, square, circle,) and for the color to use.

Show the choice of possible shapes and colors, check the users input for the correctness of their names.

If the name and color are correct, draw a shape in selected color using turtle graphics, otherwise print an error message and finish.

Example:

Ask user for the shape to draw (triangle, square, circle,) and for

Select a shape (triangle, square, circle): triangle Select a color (red, green, blue, ...): blue Python Turtle Graphics

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!