This tutorial is for my CIT 144 Class.
In this tutorial I will be showing you how to use functions. This is a Python basesd tutorial. I will also be demonstrating the absolute basics of the turtle module.
I am using Python 3.9.
Download for Python
https://www.python.org/downloads/
You can alsoj use free website repl.it to program in.
https://replit.com/~
My code
import turtle
def intro():
print("Hello")
print("Hows your day?")
def square():
sq = turtle.Turtle()
sq.penup()
sq.forward(200)
sq.pendown()
sq.forward(100)
sq.right(90)
sq.forward(100)
sq.right(90)
sq.forward(100)
sq.right(90)
sq.forward(100)
def triangle():
tri = turtle.Turtle()
tri.forward(100)
tri.right(120)
tri.forward(100)
tri.right(120)
tri.forward(100)
triangle()
square()