Thursday, June 29, 2017

Programming Concepts

As a year 7 student from Lake Brunner School, we have been exploring programming concepts and we are focusing on our friend, the 'for' loop. This means that we don't have to write the same code over and over again, we can be more efficient. We then tried the Maze Challenge and we changed the colours of the maze to personalize it to our liking. We then replaced the 24 lines of code with just 8 lines by putting in this very useful code,

for i in range (0,3):
  myPen.forward(70)
  myPen.right(90)
  
I got this challenge from http://www.101computing.net/turtle-maze/

No comments:

Post a Comment

Thank you for your positive, thoughtful, helpful comment.