repl.it
@mhs_mhs123/

pythonturtle1

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
import turtle

myturtle = turtle.Turtle()
myturtle.shape("turtle")
myturtle.color("green")

while True:
	myturtle.speed(0)
	myturtle.forward(100)
	myturtle.left(75)
	myturtle.left(12)


turtle.square = turtle.Turtle()

"""
def square():
	turtle.square.speed(0.5)
	turtle.square = forward(100)
	turtle.square = right(90)
	turtle.square = forward(100)
	turtle.square = right(90)

turtle.square()

"""
result
console
?