Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson6-1
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7c38fbfd
authored
Apr 10, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
e8ac9a19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
491 additions
and
0 deletions
2.py
2.py
0 → 100644
View file @
7c38fbfd
import
turtle
as
t
t
.
speed
(
0
)
t
.
delay
(
0
)
pen
=
t
.
pen
()
screen
=
t
.
Screen
()
t
.
shape
(
"turtle"
)
screen
=
t
.
bgcolor
(
"black"
)
colors
=
[
"red"
,
"yellow"
,
"blue"
,
"green"
,
"gray"
,
"pink"
,
"purple"
,
"brown"
,
"orange"
,
"white"
]
for
i
in
range
(
1
,
600
):
t
.
pencolor
(
colors
[
i
%
10
])
t
.
forward
(
i
)
t
.
right
(
91
)
t
.
hideturtle
()
t
.
clear
()
t
.
penup
()
t
.
goto
(
0
,
0
)
t
.
pendown
()
t
.
speed
(
0
)
t
.
delay
(
0
)
pen
=
t
.
pen
()
screen
=
t
.
Screen
()
t
.
shape
(
"turtle"
)
screen
=
t
.
bgcolor
(
"black"
)
colors
=
[
"red"
,
"yellow"
,
"blue"
,
"green"
,
"gray"
,
"pink"
,
"purple"
,
"brown"
,
"orange"
,
"white"
]
for
i
in
range
(
1
,
600
):
t
.
pencolor
(
colors
[
i
%
10
])
t
.
forward
(
i
)
t
.
right
(
121
)
t
.
hideturtle
()
t
.
clear
()
t
.
penup
()
t
.
goto
(
0
,
0
)
t
.
pendown
()
t
.
speed
(
0
)
t
.
delay
(
0
)
pen
=
t
.
pen
()
screen
=
t
.
Screen
()
t
.
shape
(
"turtle"
)
screen
=
t
.
bgcolor
(
"black"
)
colors
=
[
"red"
,
"yellow"
,
"blue"
,
"green"
,
"gray"
,
"pink"
,
"purple"
,
"brown"
,
"orange"
,
"white"
]
for
i
in
range
(
1
,
600
):
t
.
pencolor
(
colors
[
i
%
10
])
t
.
forward
(
i
)
t
.
right
(
313
)
t
.
hideturtle
()
t
.
clear
()
t
.
penup
()
t
.
goto
(
0
,
0
)
t
.
pendown
()
t
.
speed
(
0
)
t
.
delay
(
0
)
pen
=
t
.
pen
()
screen
=
t
.
Screen
()
t
.
shape
(
"turtle"
)
screen
=
t
.
bgcolor
(
"black"
)
colors
=
[
"red"
,
"yellow"
,
"blue"
,
"green"
,
"gray"
,
"pink"
,
"purple"
,
"brown"
,
"orange"
,
"white"
]
for
i
in
range
(
1
,
600
):
t
.
pencolor
(
colors
[
i
%
10
])
t
.
forward
(
i
)
t
.
right
(
90
)
t
.
hideturtle
()
t
.
clear
()
t
.
penup
()
t
.
goto
(
0
,
0
)
t
.
pendown
()
t
.
speed
(
0
)
t
.
delay
(
0
)
pen
=
t
.
pen
()
screen
=
t
.
Screen
()
t
.
shape
(
"turtle"
)
screen
=
t
.
bgcolor
(
"black"
)
colors
=
[
"red"
,
"yellow"
,
"blue"
,
"green"
,
"gray"
,
"pink"
,
"purple"
,
"brown"
,
"orange"
,
"white"
]
for
i
in
range
(
1
,
600
):
t
.
pencolor
(
colors
[
i
%
10
])
t
.
forward
(
i
)
t
.
right
(
181
)
t
.
hideturtle
()
t
.
clear
()
t
.
penup
()
t
.
goto
(
0
,
0
)
t
.
pendown
()
t
.
speed
(
0
)
t
.
delay
(
0
)
pen
=
t
.
pen
()
screen
=
t
.
Screen
()
t
.
shape
(
"turtle"
)
screen
=
t
.
bgcolor
(
"black"
)
colors
=
[
"red"
,
"yellow"
,
"blue"
,
"green"
,
"gray"
,
"pink"
,
"purple"
,
"brown"
,
"orange"
,
"white"
]
for
i
in
range
(
1
,
500
):
t
.
pencolor
(
colors
[
i
%
10
])
t
.
forward
(
i
)
t
.
right
(
171
)
t
.
hideturtle
()
t
.
clear
()
t
.
penup
()
t
.
goto
(
0
,
0
)
t
.
pendown
()
t
.
speed
(
0
)
t
.
delay
(
0
)
pen
=
t
.
pen
()
screen
=
t
.
Screen
()
t
.
shape
(
"turtle"
)
screen
=
t
.
bgcolor
(
"black"
)
colors
=
[
"red"
,
"yellow"
,
"blue"
,
"green"
,
"gray"
,
"pink"
,
"purple"
,
"brown"
,
"orange"
,
"white"
]
for
i
in
range
(
1
,
600
):
t
.
pencolor
(
colors
[
i
%
10
])
t
.
forward
(
i
)
t
.
right
(
151
)
t
.
hideturtle
()
t
.
clear
()
t
.
penup
()
t
.
goto
(
0
,
0
)
t
.
pendown
()
t
.
speed
(
0
)
t
.
delay
(
0
)
pen
=
t
.
pen
()
screen
=
t
.
Screen
()
t
.
shape
(
"turtle"
)
screen
=
t
.
bgcolor
(
"black"
)
colors
=
[
"red"
,
"yellow"
,
"blue"
,
"green"
,
"gray"
,
"pink"
,
"purple"
,
"brown"
,
"orange"
,
"white"
]
for
i
in
range
(
1
,
600
):
t
.
pencolor
(
colors
[
i
%
10
])
t
.
forward
(
i
)
t
.
right
(
191
)
t
.
hideturtle
()
t
.
clear
()
t
.
penup
()
t
.
goto
(
0
,
0
)
t
.
pendown
()
t
.
speed
(
0
)
t
.
delay
(
0
)
pen
=
t
.
pen
()
screen
=
t
.
Screen
()
t
.
shape
(
"turtle"
)
screen
=
t
.
bgcolor
(
"black"
)
colors
=
[
"red"
,
"yellow"
,
"blue"
,
"green"
,
"gray"
,
"pink"
,
"purple"
,
"brown"
,
"orange"
,
"white"
]
for
i
in
range
(
1
,
500
):
t
.
pencolor
(
colors
[
i
%
10
])
t
.
forward
(
i
)
t
.
right
(
101
)
t
.
hideturtle
()
t
.
clear
()
t
.
penup
()
t
.
goto
(
0
,
0
)
t
.
pendown
()
t
.
speed
(
0
)
t
.
delay
(
0
)
pen
=
t
.
pen
()
screen
=
t
.
Screen
()
t
.
shape
(
"turtle"
)
screen
=
t
.
bgcolor
(
"black"
)
colors
=
[
"red"
,
"yellow"
,
"blue"
,
"green"
,
"gray"
,
"pink"
,
"purple"
,
"brown"
,
"orange"
,
"white"
]
for
i
in
range
(
1
,
700
):
t
.
pencolor
(
colors
[
i
%
10
])
t
.
forward
(
i
)
t
.
right
(
111
)
t
.
hideturtle
()
t
.
clear
()
t
.
penup
()
t
.
goto
(
0
,
0
)
t
.
pendown
()
t
.
speed
(
0
)
t
.
delay
(
0
)
pen
=
t
.
pen
()
screen
=
t
.
Screen
()
t
.
shape
(
"turtle"
)
screen
=
t
.
bgcolor
(
"black"
)
colors
=
[
"red"
,
"yellow"
,
"blue"
,
"green"
,
"gray"
,
"pink"
,
"purple"
,
"brown"
,
"orange"
,
"white"
]
for
i
in
range
(
1
,
600
):
t
.
pencolor
(
colors
[
i
%
10
])
t
.
forward
(
i
)
t
.
right
(
81
)
t
.
hideturtle
()
t
.
clear
()
t
.
penup
()
t
.
goto
(
0
,
0
)
t
.
pendown
()
t
.
speed
(
0
)
t
.
delay
(
0
)
pen
=
t
.
pen
()
screen
=
t
.
Screen
()
t
.
shape
(
"turtle"
)
screen
=
t
.
bgcolor
(
"black"
)
colors
=
[
"red"
,
"yellow"
,
"blue"
,
"green"
,
"gray"
,
"pink"
,
"purple"
,
"brown"
,
"orange"
,
"white"
]
for
i
in
range
(
1
,
700
):
t
.
pencolor
(
colors
[
i
%
10
])
t
.
forward
(
i
)
t
.
right
(
71
)
t
.
hideturtle
()
t
.
clear
()
t
.
penup
()
t
.
goto
(
0
,
0
)
t
.
pendown
()
t
.
speed
(
0
)
t
.
delay
(
0
)
pen
=
t
.
pen
()
screen
=
t
.
Screen
()
t
.
shape
(
"turtle"
)
screen
=
t
.
bgcolor
(
"black"
)
colors
=
[
"red"
,
"yellow"
,
"blue"
,
"green"
,
"gray"
,
"pink"
,
"purple"
,
"brown"
,
"orange"
,
"white"
]
for
i
in
range
(
1
,
600
):
t
.
pencolor
(
colors
[
i
%
10
])
t
.
forward
(
i
)
t
.
left
(
71
)
t
.
hideturtle
()
t
.
clear
()
t
.
penup
()
t
.
goto
(
0
,
0
)
t
.
pendown
()
t
.
speed
(
0
)
t
.
delay
(
0
)
pen
=
t
.
pen
()
screen
=
t
.
Screen
()
t
.
shape
(
"turtle"
)
screen
=
t
.
bgcolor
(
"black"
)
colors
=
[
"red"
,
"yellow"
,
"blue"
,
"green"
,
"gray"
,
"pink"
,
"purple"
,
"brown"
,
"orange"
,
"white"
]
for
i
in
range
(
1
,
700
):
t
.
pencolor
(
colors
[
i
%
10
])
t
.
forward
(
i
)
t
.
right
(
61
)
t
.
hideturtle
()
t
.
clear
()
t
.
penup
()
t
.
goto
(
0
,
0
)
t
.
pendown
()
t
.
speed
(
0
)
t
.
delay
(
0
)
pen
=
t
.
pen
()
screen
=
t
.
Screen
()
t
.
shape
(
"turtle"
)
screen
=
t
.
bgcolor
(
"black"
)
colors
=
[
"red"
,
"yellow"
,
"blue"
,
"green"
,
"gray"
,
"pink"
,
"purple"
,
"brown"
,
"orange"
,
"white"
]
for
i
in
range
(
1
,
600
):
t
.
pencolor
(
colors
[
i
%
10
])
t
.
forward
(
i
)
t
.
left
(
61
)
t
.
hideturtle
()
t
.
clear
()
t
.
penup
()
t
.
goto
(
0
,
0
)
t
.
pendown
()
t
.
speed
(
0
)
t
.
delay
(
0
)
pen
=
t
.
pen
()
screen
=
t
.
Screen
()
t
.
shape
(
"turtle"
)
screen
=
t
.
bgcolor
(
"black"
)
colors
=
[
"red"
,
"yellow"
,
"blue"
,
"green"
,
"gray"
,
"pink"
,
"purple"
,
"brown"
,
"orange"
,
"white"
]
for
i
in
range
(
1
,
700
):
t
.
pencolor
(
colors
[
i
%
10
])
t
.
forward
(
i
)
t
.
right
(
51
)
t
.
hideturtle
()
t
.
clear
()
t
.
penup
()
t
.
goto
(
0
,
0
)
t
.
pendown
()
t
.
speed
(
0
)
t
.
delay
(
0
)
pen
=
t
.
pen
()
screen
=
t
.
Screen
()
t
.
shape
(
"turtle"
)
screen
=
t
.
bgcolor
(
"black"
)
colors
=
[
"red"
,
"yellow"
,
"blue"
,
"green"
,
"gray"
,
"pink"
,
"purple"
,
"brown"
,
"orange"
,
"white"
]
for
i
in
range
(
1
,
600
):
t
.
pencolor
(
colors
[
i
%
10
])
t
.
forward
(
i
)
t
.
left
(
51
)
t
.
hideturtle
()
t
.
clear
()
t
.
penup
()
t
.
goto
(
0
,
0
)
t
.
pendown
()
t
.
speed
(
0
)
t
.
delay
(
0
)
pen
=
t
.
pen
()
screen
=
t
.
Screen
()
t
.
shape
(
"turtle"
)
screen
=
t
.
bgcolor
(
"black"
)
colors
=
[
"red"
,
"yellow"
,
"blue"
,
"green"
,
"gray"
,
"pink"
,
"purple"
,
"brown"
,
"orange"
,
"white"
]
for
i
in
range
(
1
,
600
):
t
.
pencolor
(
colors
[
i
%
10
])
t
.
forward
(
i
)
t
.
right
(
41
)
t
.
hideturtle
()
t
.
clear
()
t
.
penup
()
t
.
goto
(
0
,
0
)
t
.
pendown
()
t
.
speed
(
0
)
t
.
delay
(
0
)
pen
=
t
.
pen
()
screen
=
t
.
Screen
()
t
.
shape
(
"turtle"
)
screen
=
t
.
bgcolor
(
"black"
)
colors
=
[
"red"
,
"yellow"
,
"blue"
,
"green"
,
"gray"
,
"pink"
,
"purple"
,
"brown"
,
"orange"
,
"white"
]
for
i
in
range
(
1
,
400
):
t
.
pencolor
(
colors
[
i
%
10
])
t
.
forward
(
i
)
t
.
left
(
41
)
t
.
hideturtle
()
t
.
clear
()
t
.
penup
()
t
.
goto
(
0
,
0
)
t
.
pendown
()
t
.
speed
(
0
)
t
.
delay
(
0
)
pen
=
t
.
pen
()
screen
=
t
.
Screen
()
t
.
shape
(
"turtle"
)
screen
=
t
.
bgcolor
(
"black"
)
colors
=
[
"red"
,
"yellow"
,
"blue"
,
"green"
,
"gray"
,
"pink"
,
"purple"
,
"brown"
,
"orange"
,
"white"
]
for
i
in
range
(
1
,
400
):
t
.
pencolor
(
colors
[
i
%
10
])
t
.
forward
(
i
)
t
.
right
(
31
)
t
.
hideturtle
()
t
.
clear
()
t
.
penup
()
t
.
goto
(
0
,
0
)
t
.
pendown
()
t
.
speed
(
0
)
t
.
delay
(
0
)
pen
=
t
.
pen
()
screen
=
t
.
Screen
()
t
.
shape
(
"turtle"
)
screen
=
t
.
bgcolor
(
"black"
)
colors
=
[
"red"
,
"yellow"
,
"blue"
,
"green"
,
"gray"
,
"pink"
,
"purple"
,
"brown"
,
"orange"
,
"white"
]
for
i
in
range
(
1
,
400
):
t
.
pencolor
(
colors
[
i
%
10
])
t
.
forward
(
i
)
t
.
left
(
31
)
t
.
hideturtle
()
t
.
clear
()
t
.
penup
()
t
.
goto
(
0
,
0
)
t
.
pendown
()
t
.
speed
(
0
)
t
.
delay
(
0
)
pen
=
t
.
pen
()
screen
=
t
.
Screen
()
t
.
shape
(
"turtle"
)
screen
=
t
.
bgcolor
(
"black"
)
colors
=
[
"red"
,
"yellow"
,
"blue"
,
"green"
,
"gray"
,
"pink"
,
"purple"
,
"brown"
,
"orange"
,
"white"
]
for
i
in
range
(
1
,
400
):
t
.
pencolor
(
colors
[
i
%
10
])
t
.
forward
(
i
)
t
.
right
(
21
)
t
.
hideturtle
()
t
.
clear
()
t
.
penup
()
t
.
goto
(
0
,
0
)
t
.
pendown
()
t
.
speed
(
0
)
t
.
delay
(
0
)
pen
=
t
.
pen
()
screen
=
t
.
Screen
()
t
.
shape
(
"turtle"
)
screen
=
t
.
bgcolor
(
"black"
)
colors
=
[
"red"
,
"yellow"
,
"blue"
,
"green"
,
"gray"
,
"pink"
,
"purple"
,
"brown"
,
"orange"
,
"white"
]
for
i
in
range
(
1
,
400
):
t
.
pencolor
(
colors
[
i
%
10
])
t
.
forward
(
i
)
t
.
right
(
254
)
t
.
hideturtle
()
t
.
clear
()
t
.
penup
()
t
.
goto
(
0
,
0
)
t
.
pendown
()
t
.
speed
(
0
)
t
.
delay
(
0
)
pen
=
t
.
pen
()
screen
=
t
.
Screen
()
t
.
shape
(
"turtle"
)
screen
=
t
.
bgcolor
(
"black"
)
colors
=
[
"red"
,
"yellow"
,
"blue"
,
"green"
,
"gray"
,
"pink"
,
"purple"
,
"brown"
,
"orange"
,
"white"
]
for
i
in
range
(
1
,
400
):
t
.
pencolor
(
colors
[
i
%
10
])
t
.
forward
(
i
)
t
.
right
(
231
)
t
.
hideturtle
()
t
.
clear
()
t
.
penup
()
t
.
goto
(
0
,
0
)
t
.
pendown
()
t
.
speed
(
0
)
t
.
delay
(
0
)
pen
=
t
.
pen
()
screen
=
t
.
Screen
()
t
.
shape
(
"turtle"
)
screen
=
t
.
bgcolor
(
"black"
)
colors
=
[
"red"
,
"yellow"
,
"blue"
,
"green"
,
"gray"
,
"pink"
,
"purple"
,
"brown"
,
"orange"
,
"white"
]
for
i
in
range
(
1
,
400
):
t
.
pencolor
(
colors
[
i
%
10
])
t
.
forward
(
i
)
t
.
right
(
246
)
t
.
hideturtle
()
t
.
clear
()
t
.
penup
()
t
.
goto
(
0
,
0
)
t
.
pendown
()
t
.
speed
(
0
)
t
.
delay
(
0
)
pen
=
t
.
pen
()
screen
=
t
.
Screen
()
t
.
shape
(
"turtle"
)
screen
=
t
.
bgcolor
(
"black"
)
colors
=
[
"red"
,
"yellow"
,
"blue"
,
"green"
,
"gray"
,
"pink"
,
"purple"
,
"brown"
,
"orange"
,
"white"
]
for
i
in
range
(
1
,
400
):
t
.
pencolor
(
colors
[
i
%
10
])
t
.
forward
(
i
)
t
.
right
(
351
)
t
.
hideturtle
()
t
.
clear
()
t
.
penup
()
t
.
goto
(
0
,
0
)
t
.
pendown
()
t
.
speed
(
0
)
t
.
delay
(
0
)
pen
=
t
.
pen
()
screen
=
t
.
Screen
()
t
.
shape
(
"turtle"
)
screen
=
t
.
bgcolor
(
"black"
)
colors
=
[
"red"
,
"yellow"
,
"blue"
,
"green"
,
"gray"
,
"pink"
,
"purple"
,
"brown"
,
"orange"
,
"white"
]
for
i
in
range
(
1
,
400
):
t
.
pencolor
(
colors
[
i
%
10
])
t
.
forward
(
i
)
t
.
right
(
123
)
t
.
hideturtle
()
t
.
clear
()
t
.
penup
()
t
.
goto
(
0
,
0
)
t
.
pendown
()
t
.
speed
(
0
)
t
.
delay
(
0
)
pen
=
t
.
pen
()
screen
=
t
.
Screen
()
t
.
shape
(
"turtle"
)
screen
=
t
.
bgcolor
(
"black"
)
colors
=
[
"red"
,
"yellow"
,
"blue"
,
"green"
,
"gray"
,
"pink"
,
"purple"
,
"brown"
,
"orange"
,
"white"
]
for
i
in
range
(
1
,
400
):
t
.
pencolor
(
colors
[
i
%
10
])
t
.
forward
(
i
)
t
.
right
(
291
)
t
.
hideturtle
()
t
.
clear
()
t
.
penup
()
t
.
goto
(
0
,
0
)
t
.
pendown
()
t
.
speed
(
0
)
t
.
delay
(
0
)
pen
=
t
.
pen
()
screen
=
t
.
Screen
()
t
.
shape
(
"turtle"
)
screen
=
t
.
bgcolor
(
"black"
)
colors
=
[
"red"
,
"yellow"
,
"blue"
,
"green"
,
"gray"
,
"pink"
,
"purple"
,
"brown"
,
"orange"
,
"white"
]
for
i
in
range
(
1
,
400
):
t
.
pencolor
(
colors
[
i
%
10
])
t
.
forward
(
i
)
t
.
right
(
212
)
t
.
hideturtle
()
t
.
done
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment