Google Colab と Turtle で描くアルファベット一覧（大文字編）

# 0. はじめに

- [MYJLab Advent Calendar 2021](https://qiita.com/advent-calendar/2021/myjlab) 1日目の記事です．
- Google Colaboratory と Turtle（タートルグラフィックス）でのアルファベットの描き方をまとめました．
- Turtleに命令を出して動かすことで簡単に文字を描くことができます．

![myjlab.gif](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/05e9000d-dfb9-a4dc-e2c3-96c9dc8eecf7.gif)


# 1. Turtle（タートルグラフィックス）の基本操作
- 本家サイト：[turtle --- タートルグラフィックス](https://docs.python.org/ja/3/library/turtle.html)を参考にしています．

## Turtleの動き

### 前進
```Python
turtle.forward(distance)
turtle.fd(distance)
```
- タートルが向いている方向にdistance（整数または浮動小数点数）だけ前進する．
![forward.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/1b8527b9-1a1a-eaee-7694-5eef67d1937f.png)


### 後退
```Python
turtle.back(distance)
turtle.bk(distance)
turtle.backward(distance)
```
- タートルが向いている方向と反対方向に，そのままの向きでdistance（整数または浮動小数点数）だけ後退する．
![backward.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/1c813a23-2645-1117-2b5b-f78a73f6a774.png)


### 右回転
```Python
turtle.right(angle)
turtle.rt(angle)
```
- タートルがangle(整数または浮動小数点数)単位だけ右回転する．
![right.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/4a5658a1-9402-91b7-0c85-8d0e459d97ba.png)

### 左回転
```Python
turtle.left(angle)
turtle.lt(angle)
```
- タートルがangle(整数または浮動小数点数)単位だけ左回転する．
![left.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/8f1343e8-51ad-bda6-4fd3-9ab063745108.png)

### 指定した位置に移動
```Python
turtle.goto(x, y)
turtle.setpos(x, y)
turtle.setposition(x, y)
```
- タートルがそのままの向きで指定された絶対位置(x, y)に移動する．
![setposition.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/9f2c4dec-04ec-df9b-2cc7-7a3c5f3d6f88.png)

### 指定した位置（x座標のみ）に移動
```Python
turtle.setx(x)
```
- タートルがそのままの向きで指定されたx座標に移動する．
![setX.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/05e5a17a-f2bd-d668-2224-22b785a88572.png)

### 指定した位置（y座標のみ）に移動
```Python
turtle.sety(y)
```
- タートルがそのままの向きで指定されたy座標に移動する．
![setY.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/6b744914-f556-a19d-39b6-9b05cd4ff7e1.png)

### 指定した向きに変更
```Python
turtle.setheading(to_angle)
turtle.seth(to_angle)
```
- タートルがto_angle（整数または浮動小数点数）の向きになる．
- 標準モードでは　0 - 東，90 - 北，180 - 西，270 - 南　である．
![setheading.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/e5f41903-f0c5-ddbe-fe3c-557d9ad59a43.png)

### 原点に移動
```Python
turtle.home()
```
- タートルが原点(0, 0)に移動し，向きが開始方向になる．
![home.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/ce47b224-cfc0-d75f-81f6-048e64a94ff0.png)

## Turtleの状態

### タートルを見えないようにする
```Python
turtle.hideturtle()
turtle.ht()
```

### タートルを見えるようにする
```Python
turtle.showturtle()
turtle.st()
```

## Penの制御

### ペンを下ろす
```Python
turtle.pendown()
turtle.pd()
turtle.down()
```

### ペンを上げる
```Python
turtle.penup()
turtle.pu()
turtle.up()
```

### ペンの線の太さの変更
```Python
turtle.pensize(width)
turtle.width(width)
```

### ペンの色の変更
```Python
turtle.pencolor(colorstring)
turtle.pencolor(r,g,b)
```

# 2. Google Colaboratory で Turtle を使う準備

- turtleライブラリの読み込みをおこなう

```Python:preparation.ipynb
!pip3 install ColabTurtle
import ColabTurtle.Turtle as turtle
from ColabTurtle.Turtle import *
turtle.initializeTurtle()
```

- 描画エリアのサイズとペンの動く速さを指定するとき

```Python:initial.ipynb
initializeTurtle(initial_window_size=(300, 300), initial_speed=5)
# 描画エリアのサイズの初期値：800 x 500，ペンの動く速さの初期値：4
# ペンの動く速さ：1から10までの整数，値が大きいほど速い
```
# 3. Turtle で描くアルファベット大文字一覧

- 一画目：<font color="red">赤色</font>
- 二画目：<font color="blue">青色</font>
- 三画目：<font color="yellow">黄色</font>
- 四画目：<font color="green">緑色</font>

## A
<img src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/ab6eaa67-a377-c371-84e3-f7ab14fcfba4.gif" width="300px">

```Python:A.ipynb
initializeTurtle(initial_window_size=(300, 300), initial_speed=5)

# 一画目準備
turtle.left(160)

# 一画目
turtle.pendown()
turtle.pencolor("red")
turtle.forward(100)
turtle.penup()

# 一画目→二画目準備
turtle.backward(100)
turtle.left(40)

# 二画目
turtle.pendown()
turtle.pencolor("blue")
turtle.forward(100)
turtle.penup()

# 二画目→三画目準備
turtle.backward(100)
turtle.right(40)
turtle.forward(70)
turtle.left(110)

# 三画目
turtle.pendown()
turtle.pencolor("yellow")
turtle.forward(48)
turtle.penup()

turtle.hideturtle()
```


## B
<img src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/6ca42662-3eb6-78bc-e636-649c12e059be.gif" width="300px">

```Python:B.ipynb
initializeTurtle(initial_window_size=(300, 300), initial_speed=8)

# 一画目準備
turtle.left(180)

# 一画目
turtle.pendown()
turtle.pencolor("red")
turtle.forward(90)
turtle.penup()

# 一画目→二画目準備
turtle.backward(90)
turtle.left(90)

# 二画目
turtle.pendown()
turtle.pencolor("blue")
turtle.forward(25)
for i in range(18):
    turtle.right(10)
    turtle.forward(4)
turtle.forward(20)
turtle.penup()

# 二画目→三画目準備
turtle.left(180)

# 三画目
turtle.pendown()
turtle.pencolor("yellow")
turtle.forward(30)
for i in range(18):
    turtle.right(10)
    turtle.forward(4)
turtle.forward(27)
turtle.penup()

turtle.hideturtle()
```


## C
<img src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/47f9b058-01f5-96d8-151b-4048f5faf965.gif" width="300px">

```Python:C.ipynb
initializeTurtle(initial_window_size=(300, 300), initial_speed=8)

# 一画目準備
turtle.left(40)

# 一画目
turtle.pendown()
turtle.pencolor("red")
for i in range(28):
    turtle.left(10)
    turtle.forward(8)
turtle.penup()

turtle.hideturtle()
```
## D
<img src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/d0a88398-92f8-3465-0be0-b8b5b759e1aa.gif" width="300px">

```Python:D.ipynb
initializeTurtle(initial_window_size=(300, 300), initial_speed=8)

# 一画目準備
turtle.left(180)

# 一画目
turtle.pendown()
turtle.pencolor("red")
turtle.forward(90)
turtle.penup()

# 一画目→二画目準備
turtle.backward(90)
turtle.left(90)

# 二画目
turtle.pendown()
turtle.pencolor("blue")
turtle.forward(25)
for i in range(18):
    turtle.right(10)
    turtle.forward(8)
turtle.forward(18)
turtle.penup()

turtle.hideturtle()
```

## E
<img src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/22846ecc-5a50-5e7f-e5ed-702d56954538.gif" width="300px">

```Python:E.ipynb
initializeTurtle(initial_window_size=(300, 300), initial_speed=5)

# 一画目準備
turtle.left(180)

# 一画目
turtle.pendown()
turtle.pencolor("red")
turtle.forward(90)
turtle.penup()

# 一画目→二画目準備
turtle.backward(90)
turtle.left(90)

# 二画目
turtle.pendown()
turtle.pencolor("blue")
turtle.forward(60)
turtle.penup()

# 二画目→三画目準備
turtle.backward(60)
turtle.right(90)
turtle.forward(45)
turtle.left(90)

# 三画目
turtle.pendown()
turtle.pencolor("yellow")
turtle.forward(50)
turtle.penup()

# 三画目→四画目準備
turtle.backward(50)
turtle.right(90)
turtle.forward(45)
turtle.left(90)

# 四画目
turtle.pendown()
turtle.pencolor("green")
turtle.forward(60)
turtle.penup()

turtle.hideturtle()
```

## F
<img src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/e9d3cd92-9a28-0a52-f83c-7339b3b05263.gif" width="300px">

```Python:F.ipynb
initializeTurtle(initial_window_size=(300, 300), initial_speed=5)

# 一画目準備
turtle.left(180)

# 一画目
turtle.pendown()
turtle.pencolor("red")
turtle.forward(90)
turtle.penup()

# 一画目→二画目準備
turtle.backward(90)
turtle.left(90)

# 二画目
turtle.pendown()
turtle.pencolor("blue")
turtle.forward(60)
turtle.penup()

# 二画目→三画目準備
turtle.backward(60)
turtle.right(90)
turtle.forward(45)
turtle.left(90)

# 三画目
turtle.pendown()
turtle.pencolor("yellow")
turtle.forward(50)
turtle.penup()

turtle.hideturtle()
```

## G
<img src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/345100d6-7a8b-93ec-7ce7-5008f96b7383.gif" width="300px">


```Python:G.ipynb
initializeTurtle(initial_window_size=(300, 300), initial_speed=8)

# 一画目準備
turtle.left(40)

# 一画目
turtle.pendown()
turtle.pencolor("red")
for i in range(28):
    turtle.left(10)
    turtle.forward(8)
turtle.penup()

# 一画目→二画目準備
turtle.left(40)
turtle.forward(20)
turtle.right(90)
turtle.backward(30)

# 二画目
turtle.pendown()
turtle.pencolor("blue")
turtle.forward(30)
turtle.right(90)
turtle.forward(40)
turtle.penup()

turtle.hideturtle()
```

## H
<img src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/06b340d4-c916-d0af-af6b-d2462752b279.gif" width="300px">

```Python:H.ipynb
initializeTurtle(initial_window_size=(300, 300), initial_speed=5)

# 一画目準備
turtle.left(180)

# 一画目
turtle.pendown()
turtle.pencolor("red")
turtle.forward(90)
turtle.penup()

# 一画目→二画目準備
turtle.backward(90)
turtle.left(90)
turtle.forward(75)
turtle.right(90)

# 二画目
turtle.pendown()
turtle.pencolor("blue")
turtle.forward(90)
turtle.penup()

# 二画目→三画目準備
turtle.backward(45)
turtle.left(90)
turtle.backward(75)

# 三画目
turtle.pendown()
turtle.pencolor("yellow")
turtle.forward(75)
turtle.penup()

turtle.hideturtle()
```

## I
<img src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/bec47e07-081f-bacf-249d-62c44a357d8e.gif" width="300px">

```Python:I.ipynb
initializeTurtle(initial_window_size=(300, 300), initial_speed=5)

# 一画目準備
turtle.left(180)

# 一画目
turtle.pendown()
turtle.pencolor("red")
turtle.forward(90)
turtle.penup()

# 一画目→二画目準備
turtle.backward(90)
turtle.left(90)
turtle.backward(15)

# 二画目
turtle.pendown()
turtle.pencolor("blue")
turtle.forward(30)
turtle.penup()

# 二画目→三画目準備
turtle.backward(30)
turtle.right(90)
turtle.forward(90)
turtle.left(90)

# 三画目
turtle.pendown()
turtle.pencolor("yellow")
turtle.forward(30)
turtle.penup()

turtle.hideturtle()
```

## J
<img src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/0a946737-f539-5a51-aa6a-084055630ffe.gif" width="300px">

```Python:J.ipynb
initializeTurtle(initial_window_size=(300, 300), initial_speed=8)

# 一画目準備
turtle.left(180)

# 一画目
turtle.pendown()
turtle.pencolor("red")
turtle.forward(70)
for i in range(18):
    turtle.right(10)
    turtle.forward(5)
turtle.penup()

turtle.hideturtle()
```

## K
<img src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/74f2da57-7cf2-1d83-46f9-1b1789c71f11.gif" width="300px">

```Python:K.ipynb
initializeTurtle(initial_window_size=(300, 300), initial_speed=5)

# 一画目準備
turtle.left(180)

# 一画目
turtle.pendown()
turtle.pencolor("red")
turtle.forward(90)
turtle.penup()

# 一画目→二画目準備
turtle.backward(45)
turtle.right(45)
turtle.backward(65)

# 二画目
turtle.pendown()
turtle.pencolor("blue")
turtle.forward(65)
turtle.penup()

# 二画目→三画目準備
turtle.left(90)

# 三画目
turtle.pendown()
turtle.pencolor("yellow")
turtle.forward(65)
turtle.penup()

turtle.hideturtle()
```
## L
<img src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/023e2493-cc74-733e-06d5-12bc9b1fdd6a.gif" width="300px">

```Python:L.ipynb
initializeTurtle(initial_window_size=(300, 300), initial_speed=5)

# 一画目準備
turtle.left(180)

# 一画目
turtle.pendown()
turtle.pencolor("red")
turtle.forward(90)
turtle.penup()

# 一画目→二画目準備
turtle.left(90)

# 二画目
turtle.pendown()
turtle.pencolor("blue")
turtle.forward(60)
turtle.penup()

turtle.hideturtle()
```
## M
<img src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/d5679072-dee1-fd8c-a0f6-fdf1961317ee.gif" width="300px">

```Python:M.ipynb
initializeTurtle(initial_window_size=(300, 300), initial_speed=5)

# 一画目準備
turtle.left(180)

# 一画目
turtle.pendown()
turtle.pencolor("red")
turtle.forward(90)
turtle.penup()

# 一画目→二画目準備
turtle.backward(90)
turtle.left(90)
turtle.forward(80)
turtle.right(90)

# 二画目
turtle.pendown()
turtle.pencolor("blue")
turtle.forward(90)
turtle.penup()

# 二画目→三画目準備
turtle.backward(90)
turtle.left(90)
turtle.backward(80)
turtle.right(60)

# 三画目
turtle.pendown()
turtle.pencolor("yellow")
turtle.forward(80)
turtle.penup()

# 三画目→四画目準備
turtle.right(60)
turtle.backward(80)

# 三画目
turtle.pendown()
turtle.pencolor("green")
turtle.forward(80)
turtle.penup()

turtle.hideturtle()
```

## N
<img src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/3f160c94-59af-ed75-e61a-bfd73261943d.gif" width="300px">

```Python:N.ipynb
initializeTurtle(initial_window_size=(300, 300), initial_speed=5)

# 一画目準備
turtle.left(180)

# 一画目
turtle.pendown()
turtle.pencolor("red")
turtle.forward(90)
turtle.penup()

# 一画目→二画目準備
turtle.left(90)
turtle.forward(60)
turtle.right(90)
turtle.backward(90)

# 二画目
turtle.pendown()
turtle.pencolor("blue")
turtle.forward(90)
turtle.penup()

# 二画目→三画目準備
turtle.left(33)
turtle.backward(108)

# 三画目
turtle.pendown()
turtle.pencolor("yellow")
turtle.forward(108)
turtle.penup()

turtle.hideturtle()
```

## O
<img src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/970b87ec-5554-dcab-5d77-e14a6ebc97df.gif" width="300px">

```Python:O.ipynb
initializeTurtle(initial_window_size=(300, 300), initial_speed=8)

# 一画目準備
turtle.left(100)

# 一画目
turtle.pendown()
turtle.pencolor("red")
for i in range(7):
    turtle.left(10)
    turtle.forward(8)
turtle.setheading(90)
turtle.forward(30)
turtle.left(10)
for i in range(7):
    turtle.left(10)
    turtle.forward(8)
turtle.setheading(350)
for i in range(7):
    turtle.left(10)
    turtle.forward(8)
turtle.setheading(270)
turtle.forward(30)
turtle.left(10)
for i in range(7):
    turtle.left(10)
    turtle.forward(8)
turtle.penup()

turtle.hideturtle()
```

## P
<img src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/2f35f58b-8f61-9ac7-cc00-e40292ef96e3.gif" width="300px">

```Python:P.ipynb
initializeTurtle(initial_window_size=(300, 300), initial_speed=8)

# 一画目準備
turtle.left(180)

# 一画目
turtle.pendown()
turtle.pencolor("red")
turtle.forward(90)
turtle.penup()

# 一画目→二画目準備
turtle.backward(90)
turtle.left(90)

# 二画目
turtle.pendown()
turtle.pencolor("blue")
turtle.forward(40)
turtle.right(20)
for i in range(13):
    turtle.right(10)
    turtle.forward(5)
turtle.right(30)
turtle.forward(40)
turtle.penup()

turtle.hideturtle()
```

## Q
<img src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/793bf954-7837-d91b-ec96-4ece11c9444e.gif" width="300px">

```Python:Q.ipynb
initializeTurtle(initial_window_size=(300, 300), initial_speed=8)

# 一画目準備
turtle.left(100)

# 一画目
turtle.pendown()
turtle.pencolor("red")
for i in range(7):
    turtle.left(10)
    turtle.forward(8)
turtle.setheading(90)
turtle.forward(30)
turtle.left(10)
for i in range(7):
    turtle.left(10)
    turtle.forward(8)
turtle.setheading(350)
for i in range(7):
    turtle.left(10)
    turtle.forward(8)
turtle.setheading(270)
turtle.forward(30)
turtle.left(10)
for i in range(7):
    turtle.left(10)
    turtle.forward(8)
turtle.up()

# 一画目→二画目準備
turtle.left(100)
turtle.forward(70)
turtle.left(60)

# 二画目
turtle.pendown()
turtle.pencolor("blue")
turtle.forward(60)
turtle.penup()

turtle.hideturtle()
```

## R
<img src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/9079cff5-09b7-39f0-3a26-373b0ef7aed3.gif" width="300px">

```Python:R.ipynb
initializeTurtle(initial_window_size=(300, 300), initial_speed=8)

# 一画目準備
turtle.left(180)

# 一画目
turtle.pendown()
turtle.pencolor("red")
turtle.forward(90)
turtle.penup()

# 一画目→二画目準備
turtle.backward(90)
turtle.left(90)

# 二画目
turtle.pendown()
turtle.pencolor("blue")
turtle.forward(40)
turtle.right(20)
for i in range(13):
    turtle.right(10)
    turtle.forward(5)
turtle.right(30)
turtle.forward(40)
turtle.penup()

# 二画目→三画目準備
turtle.left(180)

# 三画目
turtle.pendown()
turtle.pencolor("yellow")
turtle.forward(40)
turtle.right(60)
turtle.forward(40)
turtle.penup()

turtle.hideturtle()
```

## S
<img src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/d19c2bdd-2ca5-e567-aef5-dd9f70559513.gif" width="300px">

```Python:S.ipynb
initializeTurtle(initial_window_size=(300, 300), initial_speed=8)

# 一画目準備
turtle.left(20)

# 一画目
turtle.pendown()
turtle.pencolor("red")
for i in range(14):
    turtle.left(10)
    turtle.forward(7)
turtle.left(20)
turtle.forward(15)
turtle.left(70)
turtle.forward(80)
turtle.right(70)
turtle.forward(15)
turtle.right(20)
for i in range(14):
    turtle.right(10)
    turtle.forward(7)
turtle.penup()

turtle.hideturtle()
```

## T
<img src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/eb2c0f4c-14cc-68ae-a76d-39b5b0fc8e91.gif" width="300px">

```Python:T.ipynb
initializeTurtle(initial_window_size=(300, 300), initial_speed=5)

# 一画目準備
turtle.left(180)

# 一画目
turtle.pendown()
turtle.pencolor("red")
turtle.forward(90)
turtle.penup()

# 一画目→二画目準備
turtle.backward(90)
turtle.left(90)
turtle.backward(40)

# 二画目
turtle.pendown()
turtle.pencolor("blue")
turtle.forward(80)
turtle.penup()

turtle.hideturtle()
```

## U
<img src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/8be63556-96ee-bbc3-c9a5-a2bad002e2d5.gif" width="300px">

```Python:U.ipynb
initializeTurtle(initial_window_size=(300, 300), initial_speed=8)

# 一画目準備
turtle.left(180)

# 一画目
turtle.pendown()
turtle.pencolor("red")
turtle.forward(60)
for i in range(18):
    turtle.left(10)
    turtle.forward(7)
turtle.forward(54)
turtle.penup()

turtle.hideturtle()
```

## V
<img src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/d5a701da-d7b2-396e-233b-b7bb5c6ee843.gif" width="300px">

```Python:V.ipynb
initializeTurtle(initial_window_size=(300, 300), initial_speed=5)

# 一画目準備
turtle.right(155)

# 一画目
turtle.pendown()
turtle.pencolor("red")
turtle.forward(100)
turtle.penup()

# 一画目→二画目準備
turtle.right(50)
turtle.backward(100)

# 二画目
turtle.pendown()
turtle.pencolor("blue")
turtle.forward(100)
turtle.penup()

turtle.hideturtle()
```

## W
<img src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/9f37ff6d-64be-5f61-408d-414a3419fc17.gif" width="300px">

```Python:W.ipynb
initializeTurtle(initial_window_size=(300, 300), initial_speed=5)

# 一画目準備
turtle.right(160)

# 一画目
turtle.pendown()
turtle.pencolor("red")
turtle.forward(100)
turtle.penup()

# 一画目→二画目準備
turtle.right(40)
turtle.backward(90)

# 二画目
turtle.pendown()
turtle.pencolor("blue")
turtle.forward(90)
turtle.penup()

# 二画目→三画目準備
turtle.backward(90)
turtle.left(40)

# 三画目
turtle.pendown()
turtle.pencolor("yellow")
turtle.forward(90)
turtle.penup()

# 三画目→四画目準備
turtle.right(40)
turtle.backward(100)

# 四画目
turtle.pendown()
turtle.pencolor("green")
turtle.forward(100)
turtle.penup()

turtle.hideturtle()
```

## X
<img src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/2b9f6bc0-2843-2d86-3f9a-10a8626c03be.gif" width="300px">

```Python:X.ipynb
initializeTurtle(initial_window_size=(300, 300), initial_speed=5)

# 一画目準備
turtle.right(140)

# 一画目
turtle.pendown()
turtle.pencolor("red")
turtle.forward(100)
turtle.penup()

# 一画目→二画目準備
turtle.right(40)
turtle.backward(75)
turtle.right(40)

# 二画目
turtle.pendown()
turtle.pencolor("blue")
turtle.forward(100)
turtle.penup()

turtle.hideturtle()
```

## Y
<img src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/a5568581-4295-52a2-cad5-10325598d69d.gif" width="300px">

```Python:Y.ipynb
initializeTurtle(initial_window_size=(300, 300), initial_speed=5)

# 一画目準備
turtle.right(140)

# 一画目
turtle.pendown()
turtle.pencolor("red")
turtle.forward(60)
turtle.penup()

# 一画目→二画目準備
turtle.right(78)
turtle.backward(60)

# 二画目
turtle.pendown()
turtle.pencolor("blue")
turtle.forward(60)
turtle.penup()

# 二画目→三画目準備
turtle.left(38)

# 三画目
turtle.pendown()
turtle.pencolor("yellow")
turtle.forward(50)
turtle.penup()

turtle.hideturtle()
```

## Z
<img src="https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/c893c948-aacc-ab8a-2486-b819d7dc82e1.gif" width="300px">

```Python:Z.ipynb
initializeTurtle(initial_window_size=(300, 300), initial_speed=5)

# 一画目準備
turtle.right(90)

# 一画目
turtle.pendown()
turtle.pencolor("red")
turtle.forward(60)
turtle.penup()

# 一画目→二画目準備
turtle.right(125)

# 二画目
turtle.pendown()
turtle.pencolor("blue")
turtle.forward(100)
turtle.penup()

# 二画目→三画目準備
turtle.left(125)

# 三画目
turtle.pendown()
turtle.pencolor("yellow")
turtle.forward(60)
turtle.penup()

turtle.hideturtle()
```

# 4. おわりに

- ~~小文字編，数字編もまとめたいと思います．~~
- 小文字編もまとめました．
    - [大文字編](https://qiita.com/chiba___/items/fae8271cad6b9d2604fd)（本投稿）
    - [小文字編](https://qiita.com/chiba___/items/671de84c1ce47965effd)
    - 数字編（近日投稿予定）
- ．．．ということで
![myjlab.gif](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/484145/05e9000d-dfb9-a4dc-e2c3-96c9dc8eecf7.gif)
- 今年も最後までよろしくお願いします！！

---
- 過去のアドベントカレンダー
    -  [MYJLab Advent Calendar 2020](https://qiita.com/advent-calendar/2020/MYJLab)
    -  [MYJLab Advent Calendar 2019](https://qiita.com/advent-calendar/2019/MYJLab)