Write a program to create N copies of a given string


Topic: Write a program to create N copies of a given string

Solution

str1 = "Hello"
n = 3
str2 = str1 * 3 
print "str1: ", str1 
print "str2: ", str2



List all Python Programs