# Snowflake Challenge

#### Learning Objectives

In this challenge we will use our Python Turtle skills to draw a snowflake.

We will use iteration (For Loop) to recreate each branch of the snowflake.

#### Step 1: The first branch

First, let’s recap on the main Python Turtle commands:

• myPen.color(“red”)
• myPen.forward(100)
• myPen.right(90)
• myPen.left(45)
• myPen.penup()
• myPen.pendown()
• myPen.goto(0,0)
• myPen.circle(50)

Using these commands you will need to draw the following pattern:

#### Step 2: Using a For Loop to complete the snowflake

You are now going to use a for loop to repeat all of this code 6 times and complete your snowflake. Make sure that between each iteration you turn your turtle by 60 degrees.

Remember to use our Python Cheat Sheet to find out how the For loop works.

#### Challenge 2: Let it Snow

Tweak your code to create more complex snowflakes:

[pms-restrict display_to=”not_logged_in” message=” “]

#### Solution...

The solution for this challenge is available to full members!
Find out how to become a member:
[/pms-restrict] [pms-restrict subscription_plans=”14217″ message=” “]

#### Solution...

You are viewing this solution as part of your full membership subscription!

Python Code

#### Python Code

```#Snowflake Challenge - www.101computing.net/snowflake-challenge/
import turtle

myPen = turtle.Turtle()
myPen.shape("heart")
myPen.speed(500)

myPen.color("#3333FF")

myPen.left(90)
#Use a for loop to repeat the branch pattern 6 times
for i in range (1,7):
myPen.forward(100)
myPen.forward(-30)
myPen.left(60)
myPen.forward(30)
myPen.forward(-30)

myPen.right(120)
myPen.forward(30)
myPen.forward(-30)

myPen.left(60)
myPen.forward(-70)
myPen.left(60)
```
[/pms-restrict]

Did you like this challenge?

Click on a star to rate it!

Average rating 3.3 / 5. Vote count: 14

No votes so far! Be the first to rate this post.

As you found this challenge interesting...