Friday 30 June 2017

Programming Concepts

In class, we are learning to demonstrate programming concepts. I can use the 'For' loop. I can write code efficiently, I can reflect on my strategy used for the code, I can add 2 lists.

In the maze challenge, the Turtle has to go through the maze, and instead of using three lots of code, we can trim it down to:

for i in range(0,3):

myMaze.forward(40)
  myMaze.pendown()
  myMaze.forward(mazeWidth)
  myMaze.right(90)
  myMaze.forward(100)
  myMaze.right(90) 

Friday 9 June 2017

Working with Python Trinket