''' Purpose: continue string manipulation introduction ''' print() # operator + when given two string operands produces their concatenation; # i.e., a new string that is formed by running the two operands together print( '### operator + performs concatenation' ) a = 'fire' b = 'fighter' c = a + b print( 'a =', a ) print( 'b =', b ) print() print( 'a + b =', c ) print() # operator * when one of its operands is a string and the other is an integer, # produces a new string that is a repeated concatenation of string operand # indicated by the integer print( '### * operator produces repeated concatenation' ) m = 'Wahoo-Wah!' n = 3 mn = m * n nm = n * m print( 'm = ', m ) print( 'n = ', n ) print() print( 'm * n =', nm ) print( 'n * m =', nm )