Well, I'm doing a program that takes the spaces of sentences, letters, words, and puts each "phrase / letter / word" one underneath the other.
For example: The "phrase / letter / word": BAB BBA ACA AAB BCB CBB ABC CBC BBB ACA BCB CBA CBA CCB ACB BAA BBC ACB BCB
He takes out the spaces, and puts one underneath the other. I'll leave a print, showing, to make it easier.
Mysourcecode
string_qualquer=input("Digite o texto: ")
for x in string_qualquer.split():
print(x)
How do I save the result, instead of just printing on the screen?
Running Program: