Question

Write a Python program to create some recursive artwork, using the turtle module by using recursive...

Write a Python program to create some recursive artwork, using the turtle module by using recursive functions. This program should look very creative, wanna get some points!

0 0
Add a comment Improve this question Transcribed image text
Answer #1

import turtle def drawFlake(t, n): if n != : colors = [violet, orange, blue, black] # setting color t.color(colors[n%

import turtle

def drawFlake(t, n):

if n != 0:

colors = ["violet", "orange", "blue", "black"]

# setting color

t.color(colors[n%len(colors)])

for i in range(2):

t.fd(90)

t.lt(70)

t.fd(90)

t.lt(120)

t.lt(360/8)

drawFlake(t, n-1)

sf = turtle.Turtle()

sf.speed(0)

drawFlake(sf, 11)

# Please up vote

Add a comment
Know the answer?
Add Answer to:
Write a Python program to create some recursive artwork, using the turtle module by using recursive...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT