sentence = "Get a sentence from the user and display it back with one word per line."
for character in range(len(sentence)):
if sentence[character] == ' ' or sentence[character] == '.' or sentence[character] == ',':
print("")
else:
print(sentence[character], end='')
OUTPUT:
Get
a
sentence
from
the
user
and
display
it
back
with
one
word
per
line
solved I want to display words separate from a sentence