On 9/15/06, kirby urner <[EMAIL PROTECTED]> wrote: > Just go > > a = sys.stdin.readline()[:-1] # because you didn't mean to include /n > > ? > > Kirby
Sorry: \n >>> print 'the dog\n' the dog >>> print 'the dog\n'[:-1] the dog >>> Note extra blank line. One thing I liked about that Salon article: harping on "line by line" programming as the criterion. Just dragging and dropping ain't good enough. We're looking for lexical left brain proficiency, not just all right brained GUI goo. Kirby _______________________________________________ Edu-sig mailing list Edu-sig@python.org http://mail.python.org/mailman/listinfo/edu-sig