What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-29 08:09:07
how to make objects bounce in trutle
import turtle from time import sleep # Screen setup wn = turtle.Screen() wn.setup(width = 500, height = 500) wn.tracer(0) # Object setup (The ball) ball = turtle.Turtle() ball.color("black") ball.shape("circle") wn.update() running ... Add solution -
Python 2021-10-26 06:43:10
resize a Turtle object
import turtle # importing turtle module wm = turtle.Screen() # making a new window turtleObject = turtle.Turtle() # making a turtle and naming it turtleObject turtleObject.shape("square") # giving it a custom shape, here square turtleObject.shap... Add solution -
Other 2021-10-25 23:41:05
logo programming tutorial
import turtle olympics = turtle.Turtle() Add solution -
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
Best helpers
Ranking is empty