Answered step by step
Verified Expert Solution
Question
1 Approved Answer
WE HAVE NOT YET LEARNED ARRAYS PLEASE DO NOT USE THE from turtle import screen, Turtle METHOD PLEASE USE import turtle METHOD IN PYTHON CIS
WE HAVE NOT YET LEARNED ARRAYS
PLEASE DO NOT USE THE "from turtle import screen, Turtle" METHOD
PLEASE USE "import turtle" METHOD IN PYTHON
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started