Saturday, June 6, 2026

100 Python Turtle Graphics Programs Question + Full Program Collection SEE COMPUTER SCIENCE CDC NEW CURRICULUM 2083

 



DOWNLOAD PDF

SEE COMPUTER SCIENCE

CDC NEW CURRICULUM 2083

100 Python Turtle Graphics Programs
Question + Full Program Collection

Level: Class 9/10 practical and exam preparation. Each item is written as an exam-style question followed by a complete program. Poor turtle, promoted from drawing one square to running an entire syllabus.

Index

1–20: Basic Shape Programs

21–35: Color & Fill Programs

36–50: Loop-Based Programs

51–70: Pattern Programs

71–85: Real Object Drawing Programs

86–100: Symbol & Special Design Programs


 

Basic Shape Programs

1. Straight Line

Question: Write a Python Turtle program to draw/create a straight line.

Program:

import turtle

t = turtle.Turtle()

t.forward(200)

turtle.done()

2. Square

Question: Write a Python Turtle program to draw/create a square.

Program:

import turtle

t = turtle.Turtle()

for i in range(4):
    t.forward(100)
    t.right(90)

turtle.done()

3. Rectangle

Question: Write a Python Turtle program to draw/create a rectangle.

Program:

import turtle

t = turtle.Turtle()

for i in range(2):
    t.forward(200)
    t.right(90)
    t.forward(100)
    t.right(90)

turtle.done()

4. Equilateral Triangle

Question: Write a Python Turtle program to draw/create a equilateral triangle.

Program:

import turtle

t = turtle.Turtle()

for i in range(3):
    t.forward(120)
    t.left(120)

turtle.done()

5. Pentagon

Question: Write a Python Turtle program to draw/create a pentagon.

Program:

import turtle

t = turtle.Turtle()

for i in range(5):
    t.forward(80)
    t.right(360/5)

turtle.done()

6. Hexagon

Question: Write a Python Turtle program to draw/create a hexagon.

Program:

import turtle

t = turtle.Turtle()

for i in range(6):
    t.forward(80)
    t.right(360/6)

turtle.done()

7. Heptagon

Question: Write a Python Turtle program to draw/create a heptagon.

Program:

import turtle

t = turtle.Turtle()

for i in range(7):
    t.forward(80)
    t.right(360/7)

turtle.done()

8. Octagon

Question: Write a Python Turtle program to draw/create a octagon.

Program:

import turtle

t = turtle.Turtle()

for i in range(8):
    t.forward(80)
    t.right(360/8)

turtle.done()

9. Nonagon

Question: Write a Python Turtle program to draw/create a nonagon.

Program:

import turtle

t = turtle.Turtle()

for i in range(9):
    t.forward(80)
    t.right(360/9)

turtle.done()

10. Decagon

Question: Write a Python Turtle program to draw/create a decagon.

Program:

import turtle

t = turtle.Turtle()

for i in range(10):
    t.forward(80)
    t.right(360/10)

turtle.done()

11. Circle

Question: Write a Python Turtle program to draw/create a circle.

Program:

import turtle

t = turtle.Turtle()

t.circle(100)

turtle.done()

12. Semi-circle

Question: Write a Python Turtle program to draw/create a semi-circle.

Program:

import turtle

t = turtle.Turtle()

t.circle(100, 180)

turtle.done()

13. Five-point Star

Question: Write a Python Turtle program to draw/create a five-point star.

Program:

import turtle

t = turtle.Turtle()

for i in range(5):
    t.forward(180)
    t.right(144)

turtle.done()

14. Diamond

Question: Write a Python Turtle program to draw/create a diamond.

Program:

import turtle

t = turtle.Turtle()

t.left(45)
for i in range(4):
    t.forward(100)
    t.right(90)

turtle.done()

15. Rhombus

Question: Write a Python Turtle program to draw/create a rhombus.

Program:

import turtle

t = turtle.Turtle()

for i in range(2):
    t.forward(150)
    t.right(60)
    t.forward(100)
    t.right(120)

turtle.done()

16. Kite Shape

Question: Write a Python Turtle program to draw/create a kite shape.

Program:

import turtle

t = turtle.Turtle()

t.left(60)
t.forward(120)
t.right(120)
t.forward(120)
t.right(60)
t.forward(80)
t.right(120)
t.forward(80)

turtle.done()

17. Arrow Shape

Question: Write a Python Turtle program to draw/create a arrow shape.

Program:

import turtle

t = turtle.Turtle()

t.forward(150)
t.left(150)
t.forward(60)
t.backward(60)
t.right(300)
t.forward(60)

turtle.done()

18. Cross Shape

Question: Write a Python Turtle program to draw/create a cross shape.

Program:

import turtle

t = turtle.Turtle()

for i in range(4):
    t.forward(60)
    t.backward(60)
    t.right(90)

turtle.done()

19. Plus Sign

Question: Write a Python Turtle program to draw/create a plus sign.

Program:

import turtle

t = turtle.Turtle()

t.pensize(6)
t.forward(100)
t.backward(200)
t.forward(100)
t.left(90)
t.forward(100)
t.backward(200)

turtle.done()

20. Spiral Line

Question: Write a Python Turtle program to draw/create a spiral line.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(80):
    t.forward(i * 3)
    t.right(45)

turtle.done()


 

Color & Fill Programs

21. Filled Square

Question: Write a Python Turtle program to draw/create a filled square.

Program:

import turtle

t = turtle.Turtle()

t.fillcolor('green')
t.begin_fill()
for i in range(4):
    t.forward(120)
    t.right(90)
t.end_fill()

turtle.done()

22. Filled Triangle

Question: Write a Python Turtle program to draw/create a filled triangle.

Program:

import turtle

t = turtle.Turtle()

t.fillcolor('blue')
t.begin_fill()
for i in range(3):
    t.forward(120)
    t.right(120)
t.end_fill()

turtle.done()

23. Filled Pentagon

Question: Write a Python Turtle program to draw/create a filled pentagon.

Program:

import turtle

t = turtle.Turtle()

t.fillcolor('orange')
t.begin_fill()
for i in range(5):
    t.forward(120)
    t.right(72)
t.end_fill()

turtle.done()

24. Filled Hexagon

Question: Write a Python Turtle program to draw/create a filled hexagon.

Program:

import turtle

t = turtle.Turtle()

t.fillcolor('purple')
t.begin_fill()
for i in range(6):
    t.forward(120)
    t.right(60)
t.end_fill()

turtle.done()

25. Filled Circle

Question: Write a Python Turtle program to draw/create a filled circle.

Program:

import turtle

t = turtle.Turtle()

t.fillcolor('red')
t.begin_fill()
t.circle(80)
t.end_fill()

turtle.done()

26. Filled Star

Question: Write a Python Turtle program to draw/create a filled star.

Program:

import turtle

t = turtle.Turtle()

t.color('yellow')
t.begin_fill()
for i in range(5):
    t.forward(180)
    t.right(144)
t.end_fill()

turtle.done()

27. Rainbow Circle

Question: Write a Python Turtle program to draw/create a rainbow circle.

Program:

import turtle

colors = ['red','orange','yellow','green','blue','purple']
t = turtle.Turtle()
t.speed(0)
for i in range(60):
    t.color(colors[i % 6])
    t.circle(100)
    t.right(6)

turtle.done()

28. Multicolor Square

Question: Write a Python Turtle program to draw/create a multicolor square.

Program:

import turtle

colors = ['red','blue','green','purple']
t = turtle.Turtle()
for i in range(4):
    t.color(colors[i])
    t.forward(120)
    t.right(90)

turtle.done()

29. Multicolor Triangle

Question: Write a Python Turtle program to draw/create a multicolor triangle.

Program:

import turtle

colors = ['red','green','blue']
t = turtle.Turtle()
for i in range(3):
    t.color(colors[i])
    t.forward(140)
    t.left(120)

turtle.done()

30. Multicolor Spiral

Question: Write a Python Turtle program to draw/create a multicolor spiral.

Program:

import turtle

colors = ['red','blue','green','orange','purple']
t = turtle.Turtle()
t.speed(0)
for i in range(100):
    t.color(colors[i % 5])
    t.forward(i * 4)
    t.right(91)

turtle.done()

31. Color Wheel

Question: Write a Python Turtle program to draw/create a color wheel.

Program:

import turtle

colors = ['red','orange','yellow','green','blue','purple']
t = turtle.Turtle()
t.speed(0)
for i in range(36):
    t.color(colors[i % 6])
    t.forward(160)
    t.backward(160)
    t.right(10)

turtle.done()

32. Random Color Pattern

Question: Write a Python Turtle program to draw/create a random color pattern.

Program:

import turtle
import random

colors = ['red','blue','green','orange','purple','black']
t = turtle.Turtle()
t.speed(0)
for i in range(100):
    t.color(random.choice(colors))
    t.forward(i * 3)
    t.right(59)

turtle.done()

33. Concentric Colored Circles

Question: Write a Python Turtle program to draw/create a concentric colored circles.

Program:

import turtle

colors = ['red','blue','green','purple','orange']
t = turtle.Turtle()
for i in range(5):
    t.color(colors[i])
    t.circle(30 + i * 20)

turtle.done()

34. Color-changing Flower

Question: Write a Python Turtle program to draw/create a color-changing flower.

Program:

import turtle

colors = ['red','blue','green','purple','orange','yellow']
t = turtle.Turtle()
t.speed(0)
for i in range(36):
    t.color(colors[i % 6])
    t.circle(100)
    t.right(10)

turtle.done()

35. Gradient Style Pattern

Question: Write a Python Turtle program to draw/create a gradient style pattern.

Program:

import turtle

colors = ['#2200ff','#5522dd','#8844bb','#aa6699','#cc8877']
t = turtle.Turtle()
t.speed(0)
for i in range(100):
    t.color(colors[i % 5])
    t.forward(i * 3)
    t.left(61)

turtle.done()


 

Loop-Based Programs

36. Square using Loop

Question: Write a Python Turtle program to draw/create a square using loop.

Program:

import turtle

t = turtle.Turtle()

for i in range(4):
    t.forward(100)
    t.right(90)

turtle.done()

37. Triangle using Loop

Question: Write a Python Turtle program to draw/create a triangle using loop.

Program:

import turtle

t = turtle.Turtle()

for i in range(3):
    t.forward(120)
    t.left(120)

turtle.done()

38. Pentagon using Loop

Question: Write a Python Turtle program to draw/create a pentagon using loop.

Program:

import turtle

t = turtle.Turtle()

for i in range(5):
    t.forward(80)
    t.right(360/5)

turtle.done()

39. Hexagon using Loop

Question: Write a Python Turtle program to draw/create a hexagon using loop.

Program:

import turtle

t = turtle.Turtle()

for i in range(6):
    t.forward(80)
    t.right(360/6)

turtle.done()

40. Star using Loop

Question: Write a Python Turtle program to draw/create a star using loop.

Program:

import turtle

t = turtle.Turtle()

for i in range(5):
    t.forward(180)
    t.right(144)

turtle.done()

41. Spiral Square

Question: Write a Python Turtle program to draw/create a spiral square.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(100):
    t.forward(i * 5)
    t.right(90)

turtle.done()

42. Spiral Triangle

Question: Write a Python Turtle program to draw/create a spiral triangle.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(90):
    t.forward(i * 4)
    t.left(120)

turtle.done()

43. Spiral Circle

Question: Write a Python Turtle program to draw/create a spiral circle.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(100):
    t.circle(i)
    t.right(10)

turtle.done()

44. Nested Loop Flower

Question: Write a Python Turtle program to draw/create a nested loop flower.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(18):
    for j in range(4):
        t.forward(100)
        t.right(90)
    t.right(20)

turtle.done()

45. Repeated Squares

Question: Write a Python Turtle program to draw/create a repeated squares.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(12):
    for j in range(4):
        t.forward(100)
        t.right(90)
    t.right(30)

turtle.done()

46. Repeated Triangles

Question: Write a Python Turtle program to draw/create a repeated triangles.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(12):
    for j in range(3):
        t.forward(120)
        t.left(120)
    t.right(30)

turtle.done()

47. Repeated Circles

Question: Write a Python Turtle program to draw/create a repeated circles.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(12):
    t.circle(80)
    t.right(30)

turtle.done()

48. Rotating Hexagons

Question: Write a Python Turtle program to draw/create a rotating hexagons.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(18):
    for j in range(6):
        t.forward(70)
        t.right(60)
    t.right(20)

turtle.done()

49. Rotating Stars

Question: Write a Python Turtle program to draw/create a rotating stars.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(10):
    for j in range(5):
        t.forward(120)
        t.right(144)
    t.right(36)

turtle.done()

50. Rotating Polygons

Question: Write a Python Turtle program to draw/create a rotating polygons.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(24):
    for j in range(5):
        t.forward(80)
        t.right(72)
    t.right(15)

turtle.done()


 

Pattern Programs

51. Flower Pattern

Question: Write a Python Turtle program to draw/create a flower pattern.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(36):
    t.circle(100)
    t.right(10)

turtle.done()

52. Lotus Pattern

Question: Write a Python Turtle program to draw/create a lotus pattern.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(18):
    t.circle(100)
    t.left(20)

turtle.done()

53. Sun Pattern

Question: Write a Python Turtle program to draw/create a sun pattern.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(50):
    t.forward(180)
    t.backward(180)
    t.right(360/50)

turtle.done()

54. Spider Web

Question: Write a Python Turtle program to draw/create a spider web.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(36):
    t.forward(180)
    t.backward(180)
    t.right(10)

turtle.done()

55. Wheel Pattern

Question: Write a Python Turtle program to draw/create a wheel pattern.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(24):
    t.forward(150)
    t.backward(150)
    t.right(15)

turtle.done()

56. Galaxy Pattern

Question: Write a Python Turtle program to draw/create a galaxy pattern.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(180):
    t.circle(i)
    t.left(91)

turtle.done()

57. Shell Pattern

Question: Write a Python Turtle program to draw/create a shell pattern.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(100):
    t.circle(i)
    t.right(10)

turtle.done()

58. Firework Pattern

Question: Write a Python Turtle program to draw/create a firework pattern.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(72):
    t.forward(200)
    t.backward(200)
    t.right(5)

turtle.done()

59. Snowflake Pattern

Question: Write a Python Turtle program to draw/create a snowflake pattern.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(8):
    for j in range(3):
        t.forward(100)
        t.backward(100)
        t.right(45)
    t.right(45)

turtle.done()

60. Wave Pattern

Question: Write a Python Turtle program to draw/create a wave pattern.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(30):
    t.circle(40, 180)
    t.circle(-40, 180)

turtle.done()

61. Maze Pattern

Question: Write a Python Turtle program to draw/create a maze pattern.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(50):
    t.forward(i * 8)
    if i % 2 == 0:
        t.left(90)
    else:
        t.right(90)

turtle.done()

62. Brick Wall Pattern

Question: Write a Python Turtle program to draw/create a brick wall pattern.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for row in range(5):
    for col in range(4):
        for k in range(2):
            t.forward(80)
            t.right(90)
            t.forward(40)
            t.right(90)
        t.forward(90)
    t.penup()
    t.backward(360)
    t.right(90)
    t.forward(50)
    t.left(90)
    t.pendown()

turtle.done()

63. Eye Pattern

Question: Write a Python Turtle program to draw/create a eye pattern.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(72):
    t.circle(100)
    t.left(5)

turtle.done()

64. Infinity Pattern

Question: Write a Python Turtle program to draw/create a infinity pattern.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(36):
    t.circle(80)
    t.circle(-80)
    t.right(10)

turtle.done()

65. Zigzag Pattern

Question: Write a Python Turtle program to draw/create a zigzag pattern.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(12):
    t.forward(50)
    t.left(60)
    t.forward(50)
    t.right(120)

turtle.done()

66. Staircase Pattern

Question: Write a Python Turtle program to draw/create a staircase pattern.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(6):
    t.forward(50)
    t.left(90)
    t.forward(50)
    t.right(90)

turtle.done()

67. Chain Pattern

Question: Write a Python Turtle program to draw/create a chain pattern.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(8):
    t.circle(40)
    t.penup()
    t.forward(80)
    t.pendown()

turtle.done()

68. Circular Flower

Question: Write a Python Turtle program to draw/create a circular flower.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(24):
    t.circle(60)
    t.right(15)

turtle.done()

69. Geometric Art Pattern

Question: Write a Python Turtle program to draw/create a geometric art pattern.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(200):
    t.forward(i)
    t.left(59)

turtle.done()

70. Mathematical Curve Pattern

Question: Write a Python Turtle program to draw/create a mathematical curve pattern.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(200):
    t.forward(i * 2)
    t.right(121)

turtle.done()


 

Real Object Drawing Programs

71. House

Question: Write a Python Turtle program to draw/create a house.

Program:

import turtle

t = turtle.Turtle()

for i in range(4):
    t.forward(150)
    t.left(90)
t.left(45)
t.forward(106)
t.right(90)
t.forward(106)

turtle.done()

72. Hut

Question: Write a Python Turtle program to draw/create a hut.

Program:

import turtle

t = turtle.Turtle()

for i in range(4):
    t.forward(140)
    t.left(90)
t.left(45)
t.forward(100)
t.right(90)
t.forward(100)
t.penup()
t.goto(45,0)
t.pendown()
for i in range(2):
    t.forward(40)
    t.left(90)
    t.forward(70)
    t.left(90)

turtle.done()

73. Tree

Question: Write a Python Turtle program to draw/create a tree.

Program:

import turtle

t = turtle.Turtle()

t.left(90)
t.forward(120)
t.right(90)
t.fillcolor('green')
t.begin_fill()
t.circle(50)
t.end_fill()

turtle.done()

74. Christmas Tree

Question: Write a Python Turtle program to draw/create a christmas tree.

Program:

import turtle

t = turtle.Turtle()

t.left(90)
t.forward(80)
t.right(150)
for i in range(3):
    t.forward(80)
    t.left(120)
    t.forward(80)
    t.left(120)
    t.forward(80)
    t.left(120)
    t.penup()
    t.left(30)
    t.backward(40)
    t.right(30)
    t.pendown()

turtle.done()

75. Car

Question: Write a Python Turtle program to draw/create a car.

Program:

import turtle

t = turtle.Turtle()

for i in range(2):
    t.forward(200)
    t.left(90)
    t.forward(70)
    t.left(90)
t.penup(); t.goto(50,-40); t.pendown(); t.circle(25)
t.penup(); t.goto(150,-40); t.pendown(); t.circle(25)

turtle.done()

76. Truck

Question: Write a Python Turtle program to draw/create a truck.

Program:

import turtle

t = turtle.Turtle()

for i in range(2):
    t.forward(220); t.left(90); t.forward(80); t.left(90)
t.penup(); t.goto(220,0); t.pendown()
for i in range(2):
    t.forward(80); t.left(90); t.forward(60); t.left(90)
t.penup(); t.goto(60,-35); t.pendown(); t.circle(20)
t.penup(); t.goto(210,-35); t.pendown(); t.circle(20)

turtle.done()

77. Boat

Question: Write a Python Turtle program to draw/create a boat.

Program:

import turtle

t = turtle.Turtle()

t.forward(200)
t.left(135)
t.forward(60)
t.left(45)
t.forward(115)
t.left(45)
t.forward(60)
t.penup(); t.goto(100,0); t.pendown(); t.left(135); t.forward(100); t.right(120); t.forward(80); t.right(120); t.forward(80)

turtle.done()

78. Rocket

Question: Write a Python Turtle program to draw/create a rocket.

Program:

import turtle

t = turtle.Turtle()

for i in range(2):
    t.forward(80); t.left(90); t.forward(160); t.left(90)
t.left(45); t.forward(57); t.right(90); t.forward(57)
t.penup(); t.goto(20,-40); t.pendown(); t.goto(40,0); t.goto(60,-40)

turtle.done()

79. Airplane

Question: Write a Python Turtle program to draw/create a airplane.

Program:

import turtle

t = turtle.Turtle()

t.forward(200)
t.backward(100)
t.left(140); t.forward(80); t.backward(80)
t.right(280); t.forward(80); t.backward(80)
t.left(140); t.backward(80)
t.left(140); t.forward(50); t.backward(50)
t.right(280); t.forward(50)

turtle.done()

80. Traffic Light

Question: Write a Python Turtle program to draw/create a traffic light.

Program:

import turtle

t = turtle.Turtle()

for i in range(2):
    t.forward(100); t.left(90); t.forward(250); t.left(90)
for y,c in [(180,'red'),(110,'yellow'),(40,'green')]:
    t.penup(); t.goto(50,y); t.pendown(); t.color(c); t.begin_fill(); t.circle(25); t.end_fill()

turtle.done()

81. Clock

Question: Write a Python Turtle program to draw/create a clock.

Program:

import turtle

t = turtle.Turtle()

t.circle(100)
for i in range(12):
    t.penup(); t.goto(0,100); t.right(30*i); t.forward(80); t.pendown(); t.forward(15); t.penup(); t.goto(0,0); t.setheading(0)
t.pendown(); t.left(90); t.forward(60); t.backward(60); t.right(45); t.forward(50)

turtle.done()

82. Mobile Phone

Question: Write a Python Turtle program to draw/create a mobile phone.

Program:

import turtle

t = turtle.Turtle()

for i in range(2):
    t.forward(100); t.left(90); t.forward(180); t.left(90)
t.penup(); t.goto(45,10); t.pendown(); t.circle(5)

turtle.done()

83. Laptop

Question: Write a Python Turtle program to draw/create a laptop.

Program:

import turtle

t = turtle.Turtle()

for i in range(2):
    t.forward(180); t.left(90); t.forward(110); t.left(90)
t.penup(); t.goto(-20,-40); t.pendown(); t.forward(220); t.right(120); t.forward(40); t.right(60); t.forward(180); t.right(60); t.forward(40)

turtle.done()

84. Cup Design

Question: Write a Python Turtle program to draw/create a cup design.

Program:

import turtle

t = turtle.Turtle()

t.forward(100); t.left(90); t.forward(120); t.left(90); t.forward(100); t.left(90); t.forward(120)
t.penup(); t.goto(100,70); t.pendown(); t.circle(30,180)

turtle.done()

85. Simple Robot

Question: Write a Python Turtle program to draw/create a simple robot.

Program:

import turtle

t = turtle.Turtle()

for i in range(4):
    t.forward(100); t.left(90)
t.penup(); t.goto(25,120); t.pendown(); t.circle(10)
t.penup(); t.goto(75,120); t.pendown(); t.circle(10)
t.penup(); t.goto(25,-80); t.pendown(); t.right(90); t.forward(80)
t.penup(); t.goto(75,0); t.pendown(); t.forward(80)

turtle.done()


 

Symbol & Special Design Programs

86. Nepal Flag Simple

Question: Write a Python Turtle program to draw/create a nepal flag simple.

Program:

import turtle

t = turtle.Turtle()

t.color('crimson')
t.forward(100)
t.left(135)
t.forward(70)
t.right(135)
t.forward(100)
t.left(135)
t.forward(70)

turtle.done()

87. Olympic Rings

Question: Write a Python Turtle program to draw/create a olympic rings.

Program:

import turtle

t = turtle.Turtle()



turtle.done()
colors = ['blue','black','red','yellow','green']
positions = [(-120,0),(0,0),(120,0),(-60,-50),(60,-50)]
for i in range(5):
    t.penup(); t.goto(positions[i]); t.pendown()
    t.color(colors[i])
    t.circle(50)

turtle.done()

88. Heart Shape

Question: Write a Python Turtle program to draw/create a heart shape.

Program:

import turtle

t = turtle.Turtle()

t.color('red')
t.begin_fill()
t.left(140)
t.forward(180)
t.circle(-90,200)
t.left(120)
t.circle(-90,200)
t.forward(180)
t.end_fill()

turtle.done()

89. Smiley Face

Question: Write a Python Turtle program to draw/create a smiley face.

Program:

import turtle

t = turtle.Turtle()

t.circle(100)
t.penup(); t.goto(-35,120); t.pendown(); t.circle(10)
t.penup(); t.goto(35,120); t.pendown(); t.circle(10)
t.penup(); t.goto(-40,70); t.setheading(-60); t.pendown(); t.circle(50,120)

turtle.done()

90. Emoji Face

Question: Write a Python Turtle program to draw/create a emoji face.

Program:

import turtle

t = turtle.Turtle()

t.fillcolor('yellow')
t.begin_fill(); t.circle(100); t.end_fill()
t.penup(); t.goto(-35,120); t.pendown(); t.circle(10)
t.penup(); t.goto(35,120); t.pendown(); t.circle(10)
t.penup(); t.goto(-40,70); t.setheading(-60); t.pendown(); t.circle(50,120)

turtle.done()

91. Yin Yang Simple

Question: Write a Python Turtle program to draw/create a yin yang simple.

Program:

import turtle

t = turtle.Turtle()

t.circle(100)
t.circle(50,180)
t.circle(-50,180)
t.penup(); t.goto(0,50); t.pendown(); t.circle(10)
t.penup(); t.goto(0,150); t.pendown(); t.circle(10)

turtle.done()

92. Chessboard Simple

Question: Write a Python Turtle program to draw/create a chessboard simple.

Program:

import turtle

t = turtle.Turtle()

for row in range(4):
    for col in range(4):
        for k in range(4):
            t.forward(40); t.right(90)
        t.forward(40)
    t.penup(); t.backward(160); t.right(90); t.forward(40); t.left(90); t.pendown()

turtle.done()

93. Target Board

Question: Write a Python Turtle program to draw/create a target board.

Program:

import turtle

t = turtle.Turtle()

colors = ['red','white','blue','white','red']
for i in range(5):
    t.penup(); t.goto(0,-20*(5-i)); t.pendown(); t.color(colors[i]); t.begin_fill(); t.circle(20*(5-i)); t.end_fill()

turtle.done()

94. UFO Design

Question: Write a Python Turtle program to draw/create a ufo design.

Program:

import turtle

t = turtle.Turtle()

t.circle(100)
t.penup(); t.goto(-70,40); t.pendown(); t.forward(140)
t.penup(); t.goto(-40,70); t.pendown(); t.circle(40)

turtle.done()

95. Fractal Tree

Question: Write a Python Turtle program to draw/create a fractal tree.

Program:

import turtle

t = turtle.Turtle()
t.left(90)
t.speed(0)

def tree(branch):
    if branch > 10:
        t.forward(branch)
        t.right(20)
        tree(branch - 15)
        t.left(40)
        tree(branch - 15)
        t.right(20)
        t.backward(branch)

tree(100)

turtle.done()

96. Hypnotic Spiral

Question: Write a Python Turtle program to draw/create a hypnotic spiral.

Program:

import turtle

colors = ['red','blue','green','yellow','purple']
t = turtle.Turtle()
t.speed(0)
for i in range(300):
    t.color(colors[i % 5])
    t.forward(i)
    t.right(98)

turtle.done()

97. Color Explosion

Question: Write a Python Turtle program to draw/create a color explosion.

Program:

import turtle

colors = ['red','orange','yellow','green','blue','purple']
t = turtle.Turtle()
t.speed(0)
for i in range(360):
    t.color(colors[i % 6])
    t.forward(i)
    t.left(59)

turtle.done()

98. DNA-like Pattern

Question: Write a Python Turtle program to draw/create a dna-like pattern.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(40):
    t.circle(30)
    t.penup(); t.forward(20); t.pendown()
    t.circle(-30)
    t.penup(); t.forward(20); t.pendown()

turtle.done()

99. Mandala Design

Question: Write a Python Turtle program to draw/create a mandala design.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(72):
    for j in range(6):
        t.forward(80)
        t.right(60)
    t.right(5)

turtle.done()

100. Creative Freehand Art

Question: Write a Python Turtle program to draw/create a creative freehand art.

Program:

import turtle

t = turtle.Turtle()

t.speed(0)
for i in range(150):
    t.forward(i * 2)
    t.right(89)
    t.circle(i % 40)

turtle.done()

No comments:

Post a Comment