Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

bellcode / lesson12-2

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • lesson12-2
  • diy3.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    save project · 6b658b11
    BellCodeEditor committed 3 years ago
    6b658b11
diy3.py 491 Bytes
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 27 28
import turtle
pen=turtle.Pen()
pen.hideturtle()
pen.fillcolor('green')
pen.begin_fill()
pen.forward(300)
pen.left(120)
pen.forward(450)
pen.left(120)
pen.forward(450)
pen.left(120)
pen.forward(150)
pen.left(120)
pen.forward(300)
pen.right(120)
pen.forward(450)
pen.right(120)
pen.forward(450)
pen.right(120)
pen.forward(150)
pen.end_fill()
pen.fillcolor('red')
pen.begin_fill()
for i in range(6):
    pen.forward(150)
    pen.right(60)
pen.end_fill()
turtle.done()