What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-24 01:17:12
pygame pong
#The best python pong game without pygame! import turtle a_wins = False b_wins = False # Set up the screen turtle.Screen() wn = turtle.Screen() wn.title("Ping Pong game by Timothy") wn.bgcolor("black") wn.setup(width=800, height=600... Add solution -
Python 2021-10-19 11:17:07
how to make a birdhouse in python
import turtle wn = turtle.Screen() wn.bgcolor("white") arrow = turtle.Turtle() arrow.pensize(6) arrow.color("brown") arrow.setpos(-50, 0) arrow.fillcolor("green") arrow.begin_fill() for i in [0, 1, 2]: arro... Add solution -
Other 2021-10-18 07:25:05
import turtle t=turtle.Turtle() def star(t): for t in range(5): t.color("red") t.pendown() t.begin_fill() t.forward(100) t.right(144) t.end_fill()
import turtle t=turtle.Turtle() def star(t): for t in range(5): t.color("red") t.pendown() t.begin_fill() t.forward(100) t.right(144) t.end_fill() Add solution -
Other 2021-10-16 17:43:04
how to draw a circle
import turtle def draw_circle(turtle,color,size,x,y): turtle.penup() turtle.color(color) turtle.fillcolor(color) turtle.goto(x,y) turtle.pendown() turtle.begin_fill() turtle.circle(size) turtle.end_fill() square=turtle.Turtle() square.spee... Add solution -
Python 2021-10-15 03:22:04
turtle fillcolor
# .clear(#turtle) clears whole screen, if turtle provide then only turtle input # .goto(x,y) Sends turtle to specified location # .home() Returns to (0,0) # .setx(x) Sends turtle to specified location keeping current y # .sety(y) Sends turtle to specified... Add solution -
Python 2021-10-14 23:47:07
python turtle draw 3 concentric circles
import turtle turtle.penup() for i in range(1, 500, 50): turtle.right(90) # Face South turtle.forward(i) # Move one radius turtle.right(270) # Back to start heading turtle.pendown() # Put the pen back down turtle.circle(i) ... Add solution