9 lines
118 B
Python
9 lines
118 B
Python
import math
|
|
|
|
|
|
def fraction(a, b):
|
|
try:
|
|
return a / b
|
|
except ZeroDivisionError:
|
|
return math.nan
|