repl.it
@Caoyq1992/

Turtle_1

Python (with Turtle)

No description

fork
loading
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import turtle

mr_turtle=turtle.Turtle()


# Set our start value
start=0

# Set our end value
end=7

# Do the loop thing
for c in range(start,end+1,1):
	print(c)
	mr_turtle.forward(30)
	mr_turtle.left(45)

while (c<=end):
		mr_turtle.forward(30)
		mr_turtle.left(45)
		c=c+1


# mr_turtle.color('blue')
# mr_turtle.forward(30)
# mr_turtle.left(45)

# mr_turtle.color('black')
# mr_turtle.forward(30)
# mr_turtle.left(45)

# mr_turtle.forward(30)
# mr_turtle.left(45)

# mr_turtle.forward(30)
# mr_turtle.left(45)

# mr_turtle.forward(30)
# mr_turtle.left(45)

# mr_turtle.forward(30)
# mr_turtle.left(45)

# mr_turtle.forward(30)
# mr_turtle.left(45)
result
console