how to 'scanf' in python

Shaun Hogan shogan at iel.ie
Tue Mar 21 12:16:32 CET 2000


ok lads, im trying to figure our how to 'scanf' in python, but the code
below isnt working properly, can anyone tell me what im doing wrong??


def rl():
    line="how you doin"
    import sys
    line=sys.stdin.readline()
    x, y = string.split(line[:-1])
    x, y = int(x), int(y)
    print x,y


=====================
Shaun Hogan
Interactive Enterprise Ltd.
alt. E-mail : shaun_hogan at yahoo.com
+353 86 8342529







More information about the Python-list mailing list