Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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:
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 lineStep 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