[Tutor] Odd problem

Joerg Woelke lumbricus at gmx.net
Sat May 22 22:29:49 EDT 2004

On Sun, May 23, 2004 at 01:38:25AM +0100, Prospero wrote:
> Greetings!

[ snip ]

> I cannot find anything in the Python documentation about how to read integers from a text file into a list. I assume there is a logical opposite to str() but have not seen it as yet. Any help would be much appreciated.

>>> s="666"
>>> i=int(s)
>>> type(i)
<type 'int'>

> All the best,
> Prospero.

HTH and Re, J"o!

memento mori

More information about the Tutor mailing list