+ 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)
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.
+ 2
Thx dude, this help me
+ 1
I have solved it in C++. Approach will be same, just syntax will be different.