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:
- calls a line follower method called position(),
- inserts the return value from position() into a string,
- writes that string into the notebook.