Godtone
Joined 17 December 2020
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 | 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]) | ||