Concantenate a string by '\' : String Concatenation « String « Python






Concantenate a string by '\'

Concantenate a string by '\'
bar = 'this is ' \
      'one long string ' \
           'that is split ' \
     'across multiple lines'
print bar



           
       








Related examples in the same category

1.String concatenation DemoString concatenation Demo
2.Concatenate Strings (glued together) with the + operator, and repeated with *Concatenate Strings (glued together) with the + operator, and repeated with *