Ops Manager Learn 3: First Steps / Line Follower
This is the fourth challenge within the Robotics with GoPiGo and Python Curriculum.
Your task is to design a robot program that increases the volume of products that Amazing.com can ship out to its customers on a daily basis without increasing the number of robot pickers it employs.
Learn how to program and calibrate the Line Follower while they try to design an efficient system.
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.