In this lesson, you’ll learn how to debug in Python using
breakpoint() is an alias that works in Python 3.7 and newer for
import pdb; pdb.set_trace(), which works in all Python versions.
pdb is Python’s built in debugger and helps you step line by line through your code. If you want to learn more, check out Python Debugging With pdb.
In the video, you saw
float("inf"), which is a concise way to find the largest number (infinity). You can also use
-float("inf"), which finds the smallest possible number. Check out the Python Built-in Documentation to learn more.