Ops Manager Learn 3: First Steps / Line Follower

2. Functions

In the following steps, we will create a function to test our line follower.

function is a piece of code that doesn't execute right away. It's stored in memory and awaits being called. This allows you to call it when you want, where you want, without repeating the code.


Let’s write some basic code to test that everything is set up correctly and works as expected and learn a little about using the line follower. To do this, we will write a simple function that we will call from within the Test Code cell.