# program that illustrates string operations +, *, len, and indexing # File name: string_operations.py def main(): print("This program illustrates some string operations on two strings inputed by the user.") string1=input("Please, input the first string:") string2=input("Please, input the second string:") print("The two inputed strings are:") print(string1) print(string2) print("The concatenation of the first string and the second string: ", string1+string2) print("The concatenation of the first string and the second string, with the space between them: ", string1+' '+string2) print("Five repetitions of the first string: ", string1*5) print("Three repetitions of the second string: ", 3*string2) print("The first string has ", len(string1), " characters") print("The second string has ", len(string2), " characters") print("One more operation: ", (string1+' ')*4) print("That's it.") main()