« first day (1699 days earlier)      last day (1657 days later) » 

12:22 PM
def factorial(n):
if n == 0:
return 1
else:
return n * factorial(n-1)
Why does this doesn't return 1 in the output....
 
and then tell us how you called the function
3 messages moved from Python
 
 
3 hours later…
3:20 PM
‘import math as m;d=lambda a,b:m.hypot(a[0]-b[0],a[1]-b[1]);circleIntersection=lambda a,b,r:0 if d(a,b)>2*r else (2*m.acos(d(a,b)/(2*r))*rr-d(a,b).5*(4*rr-d(a,b)**2)*.5)//1‘
 
1 message moved from Python
 

« first day (1699 days earlier)      last day (1657 days later) »