I'm writing a program for CS class and need help with some python 3 coding. This is my current code written:
def main():
print() # blank line
phrase = input("Please enter a phrase: ")
wordlist = phrase.split()
print("Original text:",phrase)
for msg in wordlist:
print(msg)
output:
Phil
likes
to
code
I can't use any imports or things like that. I can only use small things like loops or slices or split. Any help would be appreciated. I need the output to look like:
P l t c
h i o o
i k d
l e e
s