def ProcessCharacter(character, quantity, currentstring): for i in range(0,quantity): currentstring = currentstring + str(character) return currentstring def userEntry(): userChar = input("Enter a character to duplicate") userQty = int(input("Enter a number of characters to reproduce")) newString = "" newString = ProcessCharacter(userChar,userQty,newString) print("The string is ", newString) userEntry()