+ 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 Respuestas
+ 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