Question: use python solves the following problem: Using Turtle Graphics, create a design that resembles something that might be used for hypnosis: Python Turtle Graphics Program

use python solves the following problem:

use python solves the following problem: Using Turtle Graphics, create a design

that resembles something that might be used for hypnosis: Python Turtle Graphics

Using Turtle Graphics, create a design that resembles something that might be used for hypnosis: Python Turtle Graphics Program Requirements Use a turtle.setup() command of 600, 600 for your Turtle Graphics window size. Your program will essentially draw 50 squares of varying colors but in one continuous line. Use two nested for-loops for your program: o The outer loop runs 50 times and draws the overall hypnotic shape in one continuous line. o The inner loop runs 4 times per outer loop, and actually draws the 4 lines of each square Your drawing will start in the very center and be very small at the start. It will increase in size as the drawing expands away from the center. Details on the outer for-loop: o The outer for-loop should repeat 50 times. This will draw 50 "squares" (meaning four lines that almost form a square). o The squares expand with each iteration by 5 pixels in a fashion that you'll have to deduce. o Use modulus to change the pen color. The outer loop has an index. Use modulus on this index variable to set the pencolor. You can use if/ elif/else statement(s) to do this. There's a nested for loop inside the outer for-loop. Details: o This loops iterates 4 times and draws 4 lines, ever expanding by a length of five (5). You'll have to carefully deduce which lines need to be lengthened. o You can use a variable defined at the start of the program to keep track of the length of the line

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!