tereglow wrote:
> cpuSpeed = 'Speed: 1000000000' > > What I would like to do is extract the '1000000000' from the string, > and divide that by 1000 twice to get the speed of a processor in MHz. >>> cpuSpeed = 'Speed: 1000000000' >>> p = cpuSpeed.split(":") >>> p ['Speed', ' 1000000000'] >>> p[1] ' 1000000000' >>> v = int(p[1]) >>> v 1000000000 >>> v / 1000000 1000 >>> -- . Facundo . Blog: http://www.taniquetil.com.ar/plog/ PyAr: http://www.python.org/ar/ -- http://mail.python.org/mailman/listinfo/python-list