[ next ] [ prev ] [ contents ] | Invitation To Ruby |
1: #!/usr/bin/env python 2: 3: import sys 4: 5: count = 0; 6: while 1: 7: line = sys.stdin.readline() 8: if line == "": 9: break; 10: if 11: count = count + 1 12: print count, "lines" |
[ next ] [ prev ] [ contents ] | Copyright 2002 by Jim Weirich. All rights reserved. |