CS2613/labs/L14/divisive.py
2022-10-31 09:58:30 -03:00

9 lines
118 B
Python

import math
def fraction(a, b):
try:
return a / b
except ZeroDivisionError:
return math.nan