Basic ‘turtle’ graphics with specific sized window – Python lab program

This program imports ‘turtle’ modules and uses the functions in it to create a turtle window with specific window size.

import turtle
turtle.setup(500,600)
window=turtle.Screen()
window.bgcolor('red')
window.title('Turtle window of 500X600 Size')
t_turtle=turtle.getturtle()
t_turtle.turtlesize(10,10)

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.