# # 24.练习 — 更多循环变量 (1/2)
# ## more_loops.py

# 答案


import turtle
turtle.bgcolor('black') # 改变画布背景颜色为黑色，不要修改这句话
amy = turtle.Turtle()

# Make the width thicker so that the line will be easier to see
# 使线条宽度加粗，以便更容易看到线条
amy.width(5)

# Move back without drawing anything
# 向后移动且不画任何东西
amy.penup()
amy.back(140)
amy.pendown()

# Draw three red lines, with space in between
#绘制三条红线，线与线之间用空格间隔
for line in [1, 2, 3]:
    amy.color("red")
    amy.forward(50)
    amy.penup()
    if line != 3:
        amy.forward(50)
    amy.pendown()

3b71a36deb1dbd87d69818d7c97b20984b822eee
<mask token>

<mask token>
turtle.bgcolor('black')
<mask token>
amy.width(5)
amy.penup()
amy.back(140)
amy.pendown()
for line in [1, 2, 3]:
    amy.color('red')
    amy.forward(50)
    amy.penup()
    if line != 3:
        amy.forward(50)
    amy.pendown()

<mask token>
turtle.bgcolor('black')
amy = turtle.Turtle()
amy.width(5)
amy.penup()
amy.back(140)
amy.pendown()
for line in [1, 2, 3]:
    amy.color('red')
    amy.forward(50)
    amy.penup()
    if line != 3:
        amy.forward(50)
    amy.pendown()

import turtle
turtle.bgcolor('black')
amy = turtle.Turtle()
amy.width(5)
amy.penup()
amy.back(140)
amy.pendown()
for line in [1, 2, 3]:
    amy.color('red')
    amy.forward(50)
    amy.penup()
    if line != 3:
        amy.forward(50)
    amy.pendown()

# # 24.练习 — 更多循环变量 (1/2)
# ## more_loops.py

# 答案


import turtle
turtle.bgcolor('black') # 改变画布背景颜色为黑色，不要修改这句话
amy = turtle.Turtle()

# Make the width thicker so that the line will be easier to see
# 使线条宽度加粗，以便更容易看到线条
amy.width(5)

# Move back without drawing anything
# 向后移动且不画任何东西
amy.penup()
amy.back(140)
amy.pendown()

# Draw three red lines, with space in between
#绘制三条红线，线与线之间用空格间隔
for line in [1, 2, 3]:
    amy.color("red")
    amy.forward(50)
    amy.penup()
    if line != 3:
        amy.forward(50)
    amy.pendown()
