0% found this document useful (0 votes)
5 views3 pages

Python Program Final

The document contains Python programs using the Turtle graphics library to draw letters L, T, F, E, and I, as well as shapes like circles and squares with specific colors and outlines. Each practical section provides code snippets with instructions on how to execute the drawing commands. The programs demonstrate basic turtle graphics techniques suitable for students in grade VIII.

Uploaded by

shriya1979
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views3 pages

Python Program Final

The document contains Python programs using the Turtle graphics library to draw letters L, T, F, E, and I, as well as shapes like circles and squares with specific colors and outlines. Each practical section provides code snippets with instructions on how to execute the drawing commands. The programs demonstrate basic turtle graphics techniques suitable for students in grade VIII.

Uploaded by

shriya1979
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Std: VIII Python Programs (Drawing Letters)

--------------------------------------------------------------------------------------------
Practical #1
1) To draw letter L
from turtle import*
pensize(10)
pencolor (“blue”)
forward (100)
backward (100)
left (90)
forward (100) Turtle Starting point

2) To draw letter T
from turtle import*
pensize (10)
pencolor(“red”)
left (90)
forward (100)
right (90) Turtle Starting point
forward (50)
backward (100)

3) To draw letter F
from turtle import*
pensize (10)
pencolor(“green”)
left (90)
forward (100)
right (90)
forward (100) Turtle Starting point
backward (100)
right (90)
forward (50)
left (90)
forward (100)
4) To draw letter E
pensize (10)
pencolor("purple")
left (90)
forward (100)
right (90)
forward (100)
backward (100)
right (90)
forward (50) Turtle Starting point
left (90)
forward (100)
backward (100)
right (90)
forward (50)
left (90)
forward (100)

5) To draw letter I
from turtle import*
pensize (5)
pencolor("red")
left (90)
forward (100)
right (90)
forward (50) Turtle Starting point
backward (100)
forward (50)
right (90)
forward (100)
right (90)
forward (50)
backward (100)
Practical #2
1) To draw a circle
from turtle import*
circle (90)

2) To draw a circle and fill colour (yellow) and thick outline (red).
from turtle import*
pensize (10)
pencolor ("red")
begin_fill ()
fillcolor ('yellow')
circle (90)
end_fill ()
right (15)

3) To draw a square and fill colour (purple) and thick outline (yellow)
from turtle import*
pensize (10)
pencolor ("purple")
begin_fill ()
fillcolor ('yellow')
forward (100)
left (90)
forward (100)
left (90)
forward (100)
left (90)
forward (100)
end_fill ()

You might also like