You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
288 B

try:
import math
math.factorial
except (ImportError, AttributeError):
print("SKIP")
raise SystemExit
for fun in (math.factorial,):
for x in range(-1, 30):
try:
print("%d" % fun(x))
except ValueError as e:
print("ValueError")