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

Administrator / pygame_lesson5_diy3

  • 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
  • pygame_lesson5_diy3
  • 12.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    save project · 64bb8e1f
    BellCodeEditor committed 2 years ago
    64bb8e1f
12.py 238 Bytes
Edit
1 2 3 4 5 6 7 8 9 10 11
import turtle
pen=turtle.Pen()
colours=["red","blue","yellow","green"]
screen=turtle.Screen()
screen.bgcolor("black")
for i in range(1,300):
    pen.pencolor(colours[i%4])
    pen.left(91)
    pen.forward(i)
turtle.done()
pen.hindturtle()