My student Bomie Jun “Python Turtle Project – Write Freestyle” code. from turtle import Turtle drag=Turtle() drag.color(“#000000”) def goto(x,y): drag.goto(x,y) drag.ondrag(goto) Result:
Tag Archives: Coding Projects
My Student Project – Python Turtle Write Your Name
My Student Project – Python Turtle Multiple Circles
My Student Project – Python Turtle Clock
My student Bomie Jun “Python Turtle Project – Clock” code. =============================================== import turtle number = 0 turtle.width(2) turtle.left(90) for i in range(12): number += 1 turtle.right(30) turtle.penup() turtle.forward(70) turtle.pendown() turtle.forward(10) turtle.penup() turtle.forward(20) turtle.write(str(number), align = “center”, font = (“Arial”, 16)) turtle.backward(95) turtle.pendown() turtle.penup() turtle.right(90) turtle.forward(135) turtle.left(90) turtle.pendown() turtle.circle(125) turtle.exitonclick() Result:
My Student Project – Python Turtle Spirals
My student Bomie Jun “Python Turtle Project – Spirals” code. import time import random import turtle turtle.penup() turtle.setposition(-350, 175) turtle.pendown() colors = (‘Sea green1’, ‘cyan’,) turtle.bgcolor(‘black’) for i in range(210): turtle.pencolor(colors[i % 2]) turtle.width(i / 65) turtle.forward(i) turtle.left(89) turtle.speed(30000000000) turtle.penup() turtle.setposition(350, 175) turtle.pendown() colors_2 = (‘red2’, ‘orange’, ‘yellow’) for i in range(150): turtle.pencolor(colors_2[i % […]