From 84af44bb17533cf508537ff72c2c7e8a00ed9a79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geyza=20Gon=C3=A7alves=20Ferreira?= Date: Fri, 1 Nov 2024 14:29:17 +0000 Subject: [PATCH] Adicionar turtle.py --- turtle.py | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 turtle.py diff --git a/turtle.py b/turtle.py new file mode 100644 index 0000000..057581e --- /dev/null +++ b/turtle.py @@ -0,0 +1,76 @@ +import turtle +def receba(): + zezinho = turtle + zezinho.penup() + zezinho.shape("turtle") + zezinho.pendown() + zezinho.color('pink') + #zezinho.speed('slowest') + zezinho.fillcolor('lightblue') + zezinho.pensize(20) + zezinho.forward(150) + zezinho.left(120) + zezinho.forward(150) + zezinho.left(120) + zezinho.forward(150) + zezinho.left(30) + zezinho.forward(150) + zezinho.left(90) + zezinho.forward(150) + zezinho.left(90) + zezinho.forward(150) + zezinho.penup() + zezinho.left(90) + zezinho.forward(280) + zezinho.left(90) + zezinho.forward(170) + zezinho.pendown() + zezinho.color('green') + zezinho.left(90) + zezinho.forward(600) + zezinho.backward(1000) + zezinho.penup() + zezinho.left(90) + zezinho.forward(60) + zezinho.right(90) + zezinho.forward(100) + zezinho.left(90) + zezinho.forward(350) + zezinho.pendown() + zezinho.color('yellow') + zezinho.forward(100) + zezinho.right(90) + zezinho.forward(100) + zezinho.right(90) + zezinho.forward(100) + zezinho.right(90) + zezinho.forward(100) + zezinho.penup() + zezinho.left(90) + zezinho.forward(390) + zezinho.left(90) + zezinho.pendown() + zezinho.color('brown') + zezinho.forward(50) + zezinho.left(90) + zezinho.forward(100) + zezinho.left(90) + zezinho.forward(50) + zezinho.left(90) + zezinho.forward(100) + zezinho.penup() + zezinho.backward(100) + zezinho.pendown() + zezinho.color('lightgreen') + zezinho.left(90) + zezinho.forward(100) + zezinho.left(90) + zezinho.forward(100) + zezinho.left(90) + zezinho.forward(150) + zezinho.left(90) + zezinho.forward(100) + zezinho.left(90) + zezinho.forward(100) + zezinho.done() +receba() \ No newline at end of file