Answer to Question #243450 in Python for manisekhar

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.


1
Expert's answer
2021-09-28T03:42:40-0400
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS