CodeHS review Circle commands to draw other shapes or arc and half circles 180 circle(10, 360, 3) # of sides radius Amount of circle drawn circle(10, 180) will draw a half circle 270 90 360 circle (20, 90) will draw an arc To make circles next to each other that don’t overlap circle(50) forward(100) circle(50) The distance you move must be twice the radius of the circle Tracy will start the circle at the bottom middle The GRID Tracy always starts out facing to the left and moves to the right. Speed When to use the == versus the = sign Tell the code what the variable equals Tell the code what the variable needs to equal before it will run the code The code won’t work correctly with the wrong symbol Causes the code to do this It should look like this Comments When you need one line of comments When you need multiple lines of comments Color The color must be in quotation marks The color code line must be above the command Common mistakes with color and fill If you forget the end_fill() it won’t color the circle Common mistakes with functions Indenting code - loops and functions must be indented and have : after the first line of code If you use a loop inside a function it must be double indented Conditions in loops and functions This is called the condition, it is tell the while statement when to run Common mistakes with If/Else Proper way to write your code Variables first Defining functions next Actual code that you want the program to run How to make things happen on certain repeats of the loop This is basically saying to do the commands on the even repeats only 0 1 0 This is basically saying to do the commands on the odd repeats only 2 1 3 2 4 3 5 4 5 Repeats continue 0 This is basically saying to do the commands on the 3rd repeats only 1 2 3 4 5