[Tutor] (no subject)

Alan Gauld alan.gauld at btinternet.com
Fri Sep 21 01:01:24 CEST 2007


"david lazaro" <zero2188 at hotmail.com> wrote 

> should say Game Over, but its cutting Over in half. 

As you know backslashes signal a line continuation.
To put a literal backslash in a string you need to double it:@

print 'here is a \\'

Or put an r in front of the quotes:

print r'here is a \ too'

HTH,

-- 
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld



More information about the Tutor mailing list