100% found this document useful (1 vote)
163 views12 pages

Intro to Python Turtle Programming

This document is an introduction to using the Python turtle module. It explains how to import turtle, create a turtle object, and open a window. It then demonstrates basic turtle commands like forward, backward, left, and right to move the turtle and draw shapes. The document provides code examples to draw a square and presents 5 challenges to write programs to draw other shapes using turtle commands.

Uploaded by

b
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
163 views12 pages

Intro to Python Turtle Programming

This document is an introduction to using the Python turtle module. It explains how to import turtle, create a turtle object, and open a window. It then demonstrates basic turtle commands like forward, backward, left, and right to move the turtle and draw shapes. The document provides code examples to draw a square and presents 5 challenges to write programs to draw other shapes using turtle commands.

Uploaded by

b
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
  • Introduction to Python Turtle
  • Starting Python Turtle
  • Drawing Challenges

1

on
ss
Le

Introduction to Python Turtle


Lesson 1
How to open Python

Step 1:
Your Python screen looks like this

This is what the Python Shell


looks like and you can only
write one line of code at a
time. It is called the “IDLE”
window. DO NOT USE

This EDIT window looks like


a ‘text editing’ app without
the three arrows on the left
margin. It is called the
“script” window. You can
write many lines of code
here.
Start Python Turtle

• Must import the turtle function:


import turtle

• To create and name the turtle:


bob = [Link]()

• Create a window for the turtle to appear in:


wn = [Link]()
Go forward – distance to travel forward
 [Link](150)

Go back – distance to travel back


 [Link](100)
Turn right – turns the turtle to the right .
[Link](90)

Turn left - turns the turtle to the left


 [Link](90)
How to draw a square

import turtle
wn = [Link]()
bob = [Link]()
[Link](150)
[Link](90)
[Link](150)
[Link](90)
[Link](150)
[Link](90)
[Link](150)

Do not save as ‘[Link]’ – Save as [Link] for example


Challenge 1
Write a new python turtle program to draw this shape

Paste your code here


(hint : use snipping tool)

Do not save as ‘[Link]’ – Save as [Link] for example


Challenge 2
Write a new python turtle program to draw this shape

Paste your code here


(hint : use snipping tool)

Do not save as ‘[Link]’ – Save as [Link] for example


Challenge 3
Write a new python turtle program to draw this shape

Paste your code here


(hint : use snipping tool)

Do not save as ‘[Link]’ – Save as [Link] for example


Challenge 4
Write a new python turtle program to draw this shape

Paste your code here


(hint : use snipping tool)

Do not save as ‘[Link]’ – Save as [Link] for example


Challenge 5
Write a new python turtle program to draw this shape

Paste your code here


(hint : use snipping tool)

Do not save as ‘[Link]’ – Save as [Link] for example

Lesson 1
Introduction to Python Turtle 
Lesson 1
Step 1:
How to open Python
Your Python screen looks like this
This is what the Python Shell 
looks like and you can only 
write one line of code at a 
t
Start Python Turtle
• Must import the turtle function:
import turtle
• To create and name the turtle:
bob = turtle.Turtle()
•
Go forward – distance to travel forward
bob.forward(150) 
Go back – distance to travel back
bob.backward(100)
Turn right – turns the turtle to the right .
bob.right(90) 
Turn left - turns the turtle to the left
bob.left(90)
import turtle
wn = turtle.Screen() 
bob = turtle.Turtle()
bob.forward(150)
bob.right(90)
bob.forward(150)
bob.right(90)
bob.f
Write a new python turtle program to draw this shape
Challenge 1
Paste your code here
(hint : use snipping tool)
Do not save
Write a new python turtle program to draw this shape
Challenge 2
Paste your code here
(hint : use snipping tool)
Do not save
Write a new python turtle program to draw this shape
Challenge 3
Paste your code here
(hint : use snipping tool)
Do not save

You might also like