# Mixed Up Code Practice¶

Try to solve each of the following. Click the Check Me button to check each solution. You will be told if your solution is too short, has a block in the wrong order, or you are using the wrong block. Some of the problems have an extra block that isn’t needed in the correct solution. Try to solve these on your phone or other mobile device!

```        5-10-1: The following program segment should draw a rectangle.  The blocks have been mixed up.  Drag the blocks from the left and put them in the correct order on the right.  Click the Check Me button to check your solution.from turtle import *
---
space = Screen()
---
mindy = Turtle()
---
mindy.left(90)
---
mindy.forward(100)
mindy.left(90)
mindy.forward(50)
mindy.left(90)
mindy.forward(100)
mindy.left(90)
mindy.forward(50)
mindy.left(90)
```
```        5-10-2: The following program segment should draw a red line.  The blocks have been mixed up.  Drag the blocks from the left and put them in the correct order on the right.  Click the Check Me button to check your solution.from turtle import *
---
space = Screen()
---
space = screen() #paired
---
ani = Turtle()
---
ani.color("red")
---
ani.color(red) #distractor
---
ani.forward(100)
```
```        5-10-3: The following program segment should draw an equilateral triangle.  The blocks have been mixed up.  Drag the blocks from the left and put them in the correct order on the right.  Click the Check Me button to check your solution.from turtle import *
---
from Turtle import * #distractor
---
space = Screen()
mik = Turtle()
---
mik.left(120)
mik.forward(100)
mik.left(120)
mik.forward(100)
mik.left(120)
mik.forward(100)
---
mik.left(60)
mik.forward(100)
mik.left(60)
mik.forward(100)
mik.left(60)
mik.forward(100) #paired
```
```        5-10-4: The following program segment should contain the correct steps to create a turtle.  The blocks have been mixed up.  Drag the blocks from the left and put them in the correct order on the right.  Click the Check Me button to check your solution.from turtle import *
---
from Turtle import * #paired
---
From Turtle Import * #paired
---
space = Screen()
---
space = screen() #paired
---
turt = Turtle()
---
turt = turtle() #paired
```
```        5-10-5: The following program segment should create two turtles, Ari and Chris. Ari should have a pensize of 20 and draw a line to the east, while Chris will have the standard pensize and draw a line to the west.  The blocks have been mixed up.  Drag the blocks from the left and put them in the correct order on the right.  Click the Check Me button to check your solution.from turtle import *
---
space = Screen()
---
ari = Turtle()
---
ari.pensize(20)
ari.left(180)
ari.forward(100)
---
ari.pensize(20)
ari.forward(100) #paired
---
chris = Turtle()
---
chris.forward(100)
---
chris.left(90)
chris.forward(100) #paired
```
```        5-10-6: The following program segment should draw a red line, starting from postion (10, 30).  The blocks have been mixed up.  Drag the blocks from the left and put them in the correct order on the right.  Click the Check Me button to check your solution.from turtle import *
---
space = Screen()
---
nic = Turtle()
---
nic.color("red")
---
nic.penup()
---
nic.goto(10,30)
---
nic.goto("10,30") #paired
---
nic.pendown()
---
nic.forward(100)
```
```        5-10-7: The following program segment should turn turtle Bri south, then draw a green line.  The blocks have been mixed up.  Drag the blocks from the left and put them in the correct order on the right.  Click the Check Me button to check your solution.from turtle import *
---
space = Screen()
---
bri = Turtle()
---
bri.color("green")