Godtone (talk | contribs)
Godtone (talk | contribs)
m My Python 3 code: correction
Line 513: Line 513:
return unfact(fact( (n,d),p ),p)
return unfact(fact( (n,d),p ),p)
def striv(n, d=None):
def striv(n, d=None):
if type(d)==None and type(n)==tuple and type(n[0])==int and type(n[1])==int:
if d==None and type(n)==tuple and type(n[0])==int and type(n[1])==int:
if len(tuple)==2:
if len(tuple)==2:
return str(n[0])+'/'+str(n[1])
return str(n[0])+'/'+str(n[1])