Concatenate Strings (glued together) with the + operator, and repeated with * : String Concatenation « String « Python






Concatenate Strings (glued together) with the + operator, and repeated with *

Concatenate Strings (glued together) with the + operator, and repeated with *


word = 'Help' + 'A'
print word

print '<' + word*5 + '>'

           
       








Related examples in the same category

1.String concatenation DemoString concatenation Demo
2.Concantenate a string by '\'Concantenate a string by '\'