TRY THESE CHALLENGES
C.1: Run the program and see if it works as it should
C.2: Remove the block comment around the sq function AND remove the block comment around the sq(timmy) line AND comment out the 3 lines about making Timmy move
C.3: Add a second definition to draw a hexagon (and call it) Hint: Turn 6 times and turn 60 degrees
C.4: Add definitions to draw a triangle, a pentagon and a nonagon (9 sides)
C.5: Change the sq function so that it expects to be given a distance, Make the turtle move that distance
C.6: Add a function called 'shape' that expects to be given a turtle and a number of sides. Get the function to draw a shape of that many sides
C.1: Run the program and see if it works as it should
C.2: Remove the block comment around the sq function AND remove the block comment around the sq(timmy) line AND comment out the 3 lines about making Timmy move
C.3: Add a second definition to draw a hexagon (and call it) Hint: Turn 6 times and turn 60 degrees
C.4: Add definitions to draw a triangle, a pentagon and a nonagon (9 sides)
C.5: Change the sq function so that it expects to be given a distance, Make the turtle move that distance
C.6: Add a function called 'shape' that expects to be given a turtle and a number of sides. Get the function to draw a shape of that many sides
- What have you learnt?
- What has challenged you and why?
- What do you want to do know?