Slide 9
Slide 9 text
Built-in breakpoint()
A wonderful function
def divide(e, f):
return f / e
a, b = 0, 1
print(divide(a, b))
and of course, you have a crash...
Traceback (most recent call last):
File "bugs.py", line 5, in
print(divide(a, b))
File "bugs.py", line 2, in divide
return f / e
ZeroDivisionError: division by zero
https://www.python.org/dev/peps/pep-0553/
9 / 97