It feels so good, so quick and not C!

Delaney, Timothy C (Timothy) tdelaney at avaya.com
Mon Mar 17 22:19:48 EST 2003


> From: Jp Calderone [mailto:exarkun at intarweb.us]
> 
> On Tue, Mar 18, 2003 at 12:58:56PM +1100, Delaney, Timothy C 
> (Timothy) wrote:
> > [snip]
> > 
> > The following two programs will do what you want a lot better.
> > 
> > Python 2.2 and earlier (will also work with later versions)
> > 
> >     print "This is a prompt. Enter a string to be reversed: ",
> >     sOrig = raw_input()
> 
>   sOrig = raw_input("This is a prompt.  Enter a string to be 
> reversed: ")

Hey - no discrimination against those of us who have never actually *used* raw_input() ... :)

Tim Delaney





More information about the Python-list mailing list