Write a program letter_printer.py
that has the user enter a string. The program then displays the first character in the string, the last character in the string, and prints out the string both forwards and backwards, with a space between each character.
To print out a letter with a space after it, it is convenient to use Python's end
function:
print(string[i],end=' ')
This has the effect of putting a single space after the character printed, and not spacing down to the next line. Thus, a series of strings can all be printed on the same line.