Question #243450

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.


Expert's answer

N = int(input('Enter string here: '))
string1 = input('Enter message here: ')
print((string1+' ')*N)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS