Discovered today that there’s no inbuilt nCr function in any of the popular Python modules. Tried itertools, numpy, sciPy This can’t be true? What am I missing? Seems odd to have write it out using math.factorial or use a helper function. Maybe I’m abnormally lazy.
-
-
Yeah the confusing thing about this behaviour is that once you've imported the module anywhere in your program, it becomes available on the package. Sometimes this happens because the module is used internally.
-
The result is there's basically no rhyme or reason as to when it works, it just sometimes happens to, but it will always work if you import the module.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.