Source code for AutomateTheBoringStuff.Ch03.P08_zeroDivide
"""Zero Divide
This program also produces an error by dividing by zero.
"""
[docs]def spam(divideBy: int) -> float:
"""Spam
Divides integer 42 by given integer.
Args:
divideBy: Integer to divide 42 by.
Returns:
Float result of 42 divided by given integer.
"""
return 42 / divideBy
if __name__ == '__main__':
main()