External Exam Download Resources Web Applications Games Recycle Bin

Hello

hello.py

import turtle
frame = turtle.Screen().bgcolor("White")
draw = turtle.Turtle()
  
# init colour, width, speed, x, y:
draw.color("Salmon")
draw.width(3)
draw.speed(10)
draw.penup()
draw.goto(-120, 0)
draw.pendown()
  
# H:
draw.left(90)
draw.forward(70)
draw.penup()
draw.goto(-120, 35)
draw.pendown()
draw.right(90)
draw.forward(30)
draw.penup()
draw.goto(-90, 70)
draw.pendown()
draw.right(90)
draw.forward(70)
  
# E:
draw.penup()
draw.goto(-80, 0)
draw.pendown()
draw.right(180)
draw.forward(70)
draw.right(90)
draw.forward(35)
draw.penup()
draw.goto(-80, 35)
draw.pendown()
draw.forward(35)
draw.penup()
draw.goto(-80, 0)
draw.pendown()
draw.forward(35)
  
# L:
draw.penup()
draw.goto(-30, 70)
draw.pendown()
draw.right(90)
draw.forward(70)
draw.left(90)
draw.forward(35)
  
# L:
draw.penup()
draw.goto(15, 70)
draw.pendown()
draw.right(90)
draw.forward(70)
draw.left(90)
draw.forward(35)
  
# O:
draw.penup()
draw.goto(90, 70)
draw.pendown()
for i in range(25):
  draw.right(15)
  draw.forward(10)