[Tutor] paste question

cuciferus at gmail.com cuciferus at gmail.com
Sat Sep 27 17:52:55 CEST 2008


Hi list!

I made a little script to whom I wish to pass some pasted(with middle 
click(x11 style)) multi-row text. But if I pass say 99 rows it crashes with no 
error it exits to bash. Any ideas why?
from sys import exit
a=0
while True:
    s=raw_input()
    a+=1
    if s=="finish":
        print "you have  ",  ((a-1)/5), " questions left"
        print "in", ((a-1)/100), " pages"
        a=0



More information about the Tutor mailing list