CodePop
/
Turtle Test
Read-only copy
Run
1
2
3
4
5
6
7
8
9
10
11
12
import
turtle
length =
int
(
input
(
"length size? "
)
)
angle =
int
(
input
(
"angle? "
)
)
repeat =
int
(
input
(
"repeat how many times? "
)
)
def
custom
(
length,angle,repeat
)
:
for
i
in
range
(
repeat
)
:
forward
(
length
)
right
(
angle
)
custom
(
length,angle,repeat
)
Console
Turtle
Clear
No output yet. Click "Run" to execute your Python program.