''' Purpose: continue string manipulation introduction ''' word1 = input( "Enter word: " ) word2 = input( "Enter word: " ) phrase = input( "Enter phrase: " ) print() print( 'word1:', word1 ) print( 'word2:', word2 ) print( 'phrase:', phrase ) 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' ) concatenation = word1 + word2 print( 'word1 + word2:', concatenation ) 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 * performs concatenation' ) n = 3 repetition = n * phrase print( "n:", n ) print( 'n * phrase:', repetition )