+ 1

Help me! Please

Anyone knows how do the "The Spy Life" in Python?? I'm trying but I can't do :( Here the code: #Pegar variĆ”vel nome = input("Digite algo: ") #remover espaƧos nome_sem_espaƧo_separado = nome.strip().split() nome_junto = ''.join(nome_sem_espaƧo_separado) print(nome_junto) #o que retirar #Retirando caracteres especiais s_especial = nome_junto.replace('oi' , "ti") teste = nome_junto.split("@#$_&-+()/*:;!?~`|ā€¢āˆšĻ€Ć·Ć—Ā¶āˆ†Ā£Ā¢ā‚¬Ā„^Ā°={}\%Ā©Ā®ā„¢āœ“[]") print(teste) print(s_especial)

20th Dec 2020, 6:58 PM
Coder
Coder - avatar
3 Answers
+ 1
I just solved it using Python. This is how I did it: s = input() for i in reversed(s): if i.isalpha() or i==' ': print(i,end="") If you don't understand something let me know.
20th Dec 2020, 7:27 PM
Temporary
+ 2
Thx dude, this help me
20th Dec 2020, 7:37 PM
Coder
Coder - avatar
+ 1
I have solved it in C++. Approach will be same, just syntax will be different.
20th Dec 2020, 7:12 PM
Temporary