Fractal snowflake

I’m taking a Python class at the local Adult Ed. They just had us code a fractal snowflake to teach us recursion. It’s kinda fun, I suppose.

My code is below:

import turtle
def koch(t, length, n):
    if n == 0:
    angle = 60
    koch(t, length, n-1)
    koch(t, length, n-1)

def snowflake(t,length,n):
    for i in range(6)
        koch(t, length,n)
myrtel = turtle.Turtle()

snowflake(myrtel, 3, 5)

2 thoughts on “Fractal snowflake

  1. Jesuslayex

    Testosterone Cypionate Dosage For Trt
    A number of people are suffering from back problems and simply don’t learn how to reduce it. There are a variety of methods you may use towards ridding yourself of your back problems, tips like the types in the following paragraphs can assist you figure out how to alleviate your back pain difficulties.
    Turinabol Cycles
    The expression “natural power” is utilized a great deal currently in the news and in business. Even so, you possibly will not know precisely what is suggested from the phrase. Green vitality is any kind of power from a lasting useful resource, including the direct sun light or blowing wind. Continue reading to find out more about eco-friendly vitality and how it can meet your needs.
    Injection Steroids Leg
    You may make your vacation less demanding by packing lightly for your vacation.
    Sustanon 250 Organon India

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.