Skip to content
Snippets Groups Projects
Commit 5a15c9d3 authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Adicionado graphic.py para desenhar o gráfico

parent b9e06ce4
Branches
No related tags found
1 merge request!2Out files
import turtle
t = turtle.Turtle()
wn = turtle.Screen()
wn.title("T800")
t.pensize(2)
graph = open("./graph", "r")
t.write("(0,0)")
for line in graph:
if line[0] == "r":
t.left(float(line[1:]))
elif line[0] == "w":
t.forward(float(line[1:]))
wn.exitonclick()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment