[Tutor] (no subject)
angel.purr.bott at gmail.com
Sat Oct 27 07:09:17 EDT 2018
I need to draw a patten with turtle in python 3.7 but I cant get it to work here are the specs of the pattern and my code so far can you please help
• Specifications of the pattern o The radius of the three heads is 10.
o The length of legs is 30. o The length of the sizes of the two triangles (the body of runner-up and third-place) is 40. They are all equal-size triangles. The winner’s body is a 40x40 square. o The width of the three blocks of the podium is 60. The heights are 90, 60, and 40 respectively.
And my code so far
from turtle import *
x = 0
y = 0
radius = 0
x1 = 0
x2 = 0
y1 = 0
y2 = 0
color = 0
width = 0
winner_color = "red"
second_color = "orange"
third_color = "purple"
draw_podium(winner_color, second_color, third_color)
def move_to(x, y):
x = int(input("input X coordinate: "))
y = int(input("input y coordinate: "))
def draw_head(x, y, radius):
radius = int(input("input radius: "))
def draw_line(x1, y1, x2, y2):
x1 = int(input("line start X: "))
y1 = int(input("line start Y: "))
x2 = int(input("line end X: "))
y2 = int(input("line end Y: "))
def draw_block(x, y, hight, width, color):
hight = int(input("input hight: "))
width = int(input("input width: "))
draw_block(x, y, hight, width, color)
please help me
Sent from Mail for Windows 10
More information about the Tutor