Python Turtle graphics

🐢 PYTHON TURTLE GRAPHICS TUTORIAL

# How to Create a Turtle

import turtle

t = turtle.Turtle()
turtle.done()
      

# How to Increase Turtle Size

import turtle

t = turtle.Turtle()
t.turtlesize(10)
turtle.done()
      

# How to Set Turtle Color

import turtle

t = turtle.Turtle()
t.color("green")
turtle.done()
      

# How to Use forward() Keyword

import turtle

t = turtle.Turtle()
t.forward(100)
turtle.done()
      

# How to Use backward() Keyword

import turtle

t = turtle.Turtle()
t.backward(50)
turtle.done()
      

# How to Use right() Keyword

import turtle

t = turtle.Turtle()
t.right(50)
turtle.done()
      

Click the button below to learn more and try it yourself:

Try Python Turtle Online
Python graphics Tutorial

Comments

Popular posts from this blog

Python turtle graphics