American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

6pm – Intro To Python -Joshua Widjanarko

February 20 @ 6:00 am - 7:00 pm

Final Class Before Test

Great Job Everyone, you have until next class to get any extra points.

Quick Summary

Justin:

The Largest part of you “fixes’ is more of a setheading and posistioning. Right now, when you run your code, the T of axolotol, your turtle, and your seaweed are cutoff.
Your first A is also messed up. it is slanted. This is a set heading problem. Look through your code for times you use set heading, and then at the end of your shape you didn’t set it back (particularly before you wrote the word)

Jacob and Chloe:
The largest part of your “fixes” involve fixing your x,y coordinate

example

def random_shape(x,y,color):

rectangle(x+70, y-20, color,10,10)

rectangle(x+60, y-40, color,10,10)

rectangle(x+82, y+20, color,10,10)

lets say this as an a example. I want the first shape to be at x, y, so we need to adjust them all

simply do the opposite of what did on the first shape you wrote

fro examply since you added 70 to x and subtracted 20 to y, you do the opposite to all x,y’s in your code

def random_shape(x,y,color):

rectangle(x, y, color,10,10)    (subtract 70 from x and add 20 from y)

rectangle(x-10, y-20, color,10,10) (subtract 70 from x and add 20 from y)

rectangle(x+12, y+40, color,10,10) (subtract 70 from x and add 20 from y)

(remember, you need to adjust how you call your function

Details

Date:
February 20
Time:
6:00 am - 7:00 pm
Verified by MonsterInsights