Question #229473

Write a program to print the given input word N times ina single line separated by space.

Expert's answer

word=input("Enter word: ")
N=int(input("Enter N: "))
for _ in range(0,N):
    print(word,end=" ")




LATEST TUTORIALS
APPROVED BY CLIENTS