2. Task 2 - Variables
For each of the tasks below, copy the code into EdPy and follow the instructions.
2.1 Fixing Code
Instructions
The code below doesn't quite work. Add a variable to line 12 to make it work.
Code - Click to expand
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
Hint - Click to expand
The name of the variable has to match something on line 13.
2.2 Variable Names
Instructions
Complete the code below. Read the code and use the variable names to determine what to do:
Code - Click to expand
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | |
2.3 Square Driving
Instructions
Using variables to set the length, angle and speed – create a program that moves the Edison in a square.