Ops Manager Learn 4: Turn a Corner

4. Scaffolding

Before we start sending our robot careening down the line, let's do some code that can be manually tested.

Let’s write some code to repeatedly read the line follower, decide on an appropriate course of action according to the above pseudocode and report back the value read and the decision made.

Type the code below into the Main Code cell.

NOTE:

      • elif is python’s way of saying else if.
      • The instructions within the elif are only executed f none of the previous conditions have been met and the stated conditions apply.
      • You can use any number of elifs between the if and the else conditions to build up an arbitrary number of options.