Finch Assignment 10 - Loops
Learning goal: understand that loops can simplify programs.
Watch the lesson video (it uses the GearsBot was examples, but that's fine):
There are other ways of using the loop. You can use time.
for t in timer(10):
<do something>
<do something>
…..
For example:
for t in timer (10):
beep(1, 880)
The computer will beep for 10 seconds.
Assignment 10:
Using a loop, write a short program for the robot to travel along a square route.
To turn it in, look at the instructions below or or watch this video:
- Go to Google Drive
- Open the Class Program folder in 'Shared with me'
- Open your class folder and assignment folder
- Click on the "New" button on the top left
- Upload the program from your computer
Write a Reflection on what you have learned.
|