Hi, i'm python beginner.
how to make that only use def, for, list, while ..
def comb(n,r):
if r == 0:
return 1
elif r == n:
return 1
else:
return comb(n-1,r-1) + comb(n-1,r)
this code is very slow....
ah , I have to use recursion .!
please tell me !