PA Designer Learn 4: More Python Commands

This is the second challenge within the Robotics with GoPiGo and Python Curriculum.

Your task is to program your robot to alert a person with a hearing impairment to visiting house guests.

Learn how to use the Loudness Sensor alongside Jupyter Notebooks.

3. The int() function

The int(  ) function returns the integer part of a number. This is the part of the number that comes before the decimal point.

In the above code int(elapsed_time()) returns the elapsed time in whole seconds only.