**Hi i've been assigned with doing a torn square, and i've kinda got it working with the code below.**

```
import turtle
turtle.reset()
length=100
degree=60
i=0
while i < 4:
turtle.forward(length/length*40)
turtle.right(degree)
turtle.forward(length/2)
turtle.left(degree+degree)
turtle.forward(length/2)
turtle.right(degree)
turtle.forward(length/length*40)
i+=1
turtle.right(90)
else:
raw_input("there's hopefully a square, all torn like!")
```

as you can see i can change the degree so the torn square looks different but i know i'm supposed to do some math equations to work out the degree of the torn length.

pythagorean theorem is what i need. (** is to the power of isnt it?) `a**2 + b**2 = c**2`

right?

So my length for

```
a=40
b=10
.....(all the other code)
turtle.forward(a**2+b**2)
```

but that sends it really really far, do i need to square route the result ?

sorry if i yabbered i tried to use this as my thought pad, still trying to work it out while i'm typing this :P