Question: please you import turtle method CIS 2531: Introduction to Python Programming Lab Assignment Include a copy of your Python source code file for upload. 2.


please you "import turtle" method
CIS 2531: Introduction to Python Programming Lab Assignment Include a copy of your Python source code file for upload. 2. Use the turtle graphics library to create a Colorful Squares Python program that uses nested loops to draws 3 rows of different colored squares in each row. Rows can have any number of squares in the range of 3 to 12. Prompt, read, and validate user input number of columns and colors. Create a colorful squares drawing when input is in the valid ranges. Include a multi-line program comment header that includes your name, date, class, and short problem description Prompt, read, and validate a number of columns in the range of 3 to 12. Only create a drawing when column input is in this range; display an error message otherwise. F== RESTART: F:\COD\CurrCourses\CIS2531Python Labs\Lab 4 How many columns to display (3 to 12)? 1 ERROR! Number of columns must be in range of 3 to 12! >>> === RESTART: F:\COD\CurrCourses\CIS2531Python Labs\Lab 4 How many columns to display (3 to 12)? 13 ERROR! Number of columns must be in range of 3 to 12! >>>| . Prompt, read, and validate a series of three different colors. NOTE: You do not need to validate the colors themselves, only that they are different. Only create a drawing when colors are different for each row; display an error message otherwise. === RESTART: F:\COD\CurrCourses CIS2531 Pyt How many columns to display (3 to 12)? 5 What is the first row color? red What is the second row color? white What is the third row color? red ERROR! All colors must be different! >>> | Use the valid number of columns and colors to create a pattern centered in the fixed displayed window. Some examples: CIS 2531: Introduction to Python Programming Lab Assignment Colorful Squares === RESTART: F:\COD\CurrCourses\CIS2531Py How many columns to display (3 to 12)? 3 What is the first row color? red What is the second row color? yellow What is the third row color? green Colorful Squares === RESTART: F:\COD\CurrCourses\CIS2531Pytho How many columns to display (3 to 12)? 5 What is the first row color? red What is the second row color? white What is the third row color? blue >>>|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
