Posts

Showing posts with the label String Repetation.

String Repetation.

  String Repetation.     ->write a program to print the given input word n times in single line separated by spaces.           w=input()           n=int(input())           print((w+" ")*n)