Run a Program in EdPy

Script adapted from [3 p. 19].

What did Edison do after you pushed the code and pressed play on Edison? Was it what you predicted?

Compare what Edison did to the Python commands. Do they match up?

Practice

  • Look at the information in the Setup code. The units for distance in the Setup code can be either centimetres, inches or time. How can you change it from one to the other?
  • How will the test code change if you change the units of measurement?
  • If there are errors in your code after you have clicked the ‘Check Code’ button, in which window will the errors appear?