backslashes allow continuations : Statement « Language Basics « Python






backslashes allow continuations

backslashes allow continuations
a = 0
b = 1
c = 2
d = 3
e = 4
f = 5
g = 6

if a == b and c == d and   \
   d == e and f == g:
   print 'olde'                  # backslashes allow continuations

if (a == b and c == d and
    d == e and e == f):
    print 'new'                  # but parentheses usually do too

print "Here"

           
       








Related examples in the same category