while True: text = input("Enter some text: ") print(text+"\n"+"-"*len(text))