Can someone please help me create a function that prints a dashed border around text the user enters. I know it has to identify the length of a string so it can adjust accordingly around the entered text but I don't know how to do that.
So far I have:
my_string = raw_input("Enter some text:")
len(my_string)
for i in my_string:
print my_string
def border():
dash = "-"
border()
The final result should look something like this:
--.----.-----------
. .
- Hello -
. .
--.-----.---------.