---
# System prepended metadata

title: DAY 08 - Turtle

---

# DAY 08 - Turtle
###### tags: `python教學` `turtle`


## Turtle
https://github.com/tolgaatam/ColabTurtle

```python=
from ColabTurtle.Turtle import *

initializeTurtle()


def cube(n):
    for i in range(4):
        forward(n)
        right(90)



speed(5)
color("orange")

penup()   # = pu()/up()
goto(getx()+50,gety()-100)


pendown()   # = pd()
cube(100)

penup()   # = pu()/up()
goto(getx()-200,gety())


pendown()   # = pd()
cube(100)


pu()
home()
```

![](https://i.imgur.com/qyZkezi.png)


## 