Ops Manager Learn 3: First Steps / Line Follower

5. Some Explanations

Line 1: The def keyword tells the robot that we are defining a new function.

Line 2: The indented code tells the robot what to do whenever we call the function.


This particular function does the following, all in one line:

      1. calls a line follower method called position(),
      2. inserts the return value from position() into a string,
      3. writes that string into the notebook.