How to factor using Python?

Neal Becker ndbecker2 at gmail.com
Tue Mar 11 11:03:42 EDT 2008


Nathan Pinno wrote:

> How do I factor a number? I mean how do I translate x! into proper
> Python code, so that it will always do the correct math?
> 
> Thanks in advance,
> Nathan P.

import os
os.system('factor 25')




More information about the Python-list mailing list