Created
August 18, 2020 18:47
-
-
Save codehaks/88b1f3f970dd55353fda8906a0a8b3f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import turtle | |
t=turtle.getturtle() | |
t.speed(100) | |
t.fillcolor("yellow") | |
t.begin_fill() | |
t.pensize(5) | |
t.pencolor("black") | |
t.forward(100) | |
t.circle(25,180) | |
t.forward(100) | |
t.circle(25,180) | |
t.end_fill() | |
t.penup() | |
t.setposition(0,-75) | |
t.pendown() | |
t.fillcolor("green") | |
t.begin_fill() | |
t.pensize(5) | |
t.pencolor("black") | |
t.forward(100) | |
t.circle(25,180) | |
t.forward(100) | |
t.circle(25,180) | |
t.end_fill() | |
t.penup() | |
t.setposition(0,+75) | |
t.pendown() | |
t.fillcolor("red") | |
t.begin_fill() | |
t.pensize(5) | |
t.pencolor("black") | |
t.forward(100) | |
t.circle(25,180) | |
t.forward(100) | |
t.circle(25,180) | |
t.end_fill() | |
t.penup() | |
t.setposition(0,-125) | |
t.pendown() | |
t.fillcolor("red") | |
t.begin_fill() | |
t.pensize(5) | |
t.pencolor("black") | |
t.forward(125) | |
t.circle(50,90) | |
t.forward(300) | |
t.circle(50,90) | |
t.forward(125) | |
t.circle(50,90) | |
t.forward(300) | |
t.circle(50,90) | |
t.end_fill() | |
input("Press any key...") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment