In the given example the string is
messages, N = 3. So we have to repeat the string three times. Then we get messages messages messages as output.
N = int(input('Enter string here: ')) string1 = input('Enter message here: ') print((string1+' ')*N)
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment