- This event has passed.
5 PM – Intro To Python – Darin
October 17, 2025 @ 5:00 pm - 6:00 pm
Today We Do
- We continued learning the basics of Python Digital drawing using Turtle.
Homework
- Create a new file “Oct17_Turtle3FunctionsHW.py”
- Look at this image for your coordinates guidance
- Draw the Square, Rectangle, and Triangle using a shape function. The Square function has been defined in class, but the other two you will have to create.
-
def drawSquare(x, y, size, c): t.penup() t.goto(x, y) t.pendown() t.color(c) t.begin_fill() for i in range(4): t.forward(size) t.right(90) t.end_fill() drawSquare(-200, 200, 10, "black") drawSquare(50, 200, 100, "green") # to make a new shape function, modify only the part that draws # modify whatever is in the for loop. Hint: Start by drawing the rectangle and triangle with just t.forward() and t.right()/t.left() and then simplify the code with for loops, this will be the main meat of your drawing functions
Notes:
You can reach me at ddjapri@ayclogic.com.
All class notes can be found here: https://drive.google.com/drive/folders/1ClxGyA_3oLZtwhgN0j3BVZjpffoxMHNj?usp=sharing
