Question: Cantor Set Create a new python file called CantorStart.??, import turtle graphics as before. Go to the position (while pen is up) (-150,80). Set the

 Cantor Set Create a new python file called "CantorStart.??", import turtle

Cantor Set Create a new python file called "CantorStart.??", import turtle graphics as before. Go to the position (while pen is up) (-150,80). Set the line thickness to 5. Put pen down. Go to (150,80) Lift pen up, go to (-150,70), pen down, go to (150,70). Now backtrack to (-50,70), change pen color to white, and go to (50,70). You have now removed the middle third of the line drawn in the previous part. Repeat this process whereby you "remove" (by using the color white) the middle thirds of the previous lines (move down 10 units vertically for each line). Do this 4 times. You can set up a loop to do it or do it manually. Make sure that middle thirds of the black lines from teach previous set are removed. This is the start of a fractal known as the "Cantor Set" 1. 2. 3. 4. 5. Try to make the process of generating the "Cantor Set" automatic i.e. don't manually encode the drawings, but use loops. You will need to derive (or look up) the formula for it to do this. Try to do 8 iterations. Cantor Set Create a new python file called "CantorStart.??", import turtle graphics as before. Go to the position (while pen is up) (-150,80). Set the line thickness to 5. Put pen down. Go to (150,80) Lift pen up, go to (-150,70), pen down, go to (150,70). Now backtrack to (-50,70), change pen color to white, and go to (50,70). You have now removed the middle third of the line drawn in the previous part. Repeat this process whereby you "remove" (by using the color white) the middle thirds of the previous lines (move down 10 units vertically for each line). Do this 4 times. You can set up a loop to do it or do it manually. Make sure that middle thirds of the black lines from teach previous set are removed. This is the start of a fractal known as the "Cantor Set" 1. 2. 3. 4. 5. Try to make the process of generating the "Cantor Set" automatic i.e. don't manually encode the drawings, but use loops. You will need to derive (or look up) the formula for it to do this. Try to do 8 iterations

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!