Advanced Python Programming CH-5 Lect-1
Advanced Python Programming CH-5 Lect-1
Compiled by :
Amisha D. Patel
Lecturer in Info.Tech.
Gov. Polytechnic Valsad
Learning Outcomes
After actively interacting with the content, you will be able to:
t1=turtle.Turtle()
turtle.done()
import turtle
t1=turtle.Turtle()
t1.screen.bgcolor("black")
t1.color("red")
t1.screen.setup(300,300)
t1.write("hello")
t1.screen.title("First")
turtle.done()
Turtle Methods
1. Turtle
2. Done()
3. Shape()
4. Shapesize()
5. Title()
6. Bgcolor()
7. Color()
8. Fillcolor()
9. Pencolor()
10. Pensize()
11. Speed()
import turtle
t1=turtle.Turtle()
t1.shape("triangle")
t1.shapesize(5,5)
t1.screen.title("First")
t1.screen.bgcolor("black")
t1.color("red")
t1.fillcolor("blue")
t1.screen.setup(300,300)
t1.write("hello")
turtle.done()
import turtle
t1=turtle.Turtle()
t1.shape("circle")
t1.pensize(10)
t1.speed(5)
t1.forward(300)
tutle.done()
Thank you