+ 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 Antworten
+ 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.