The Spy Life | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

The Spy Life

str = input().split(" ") s = "" for i in str: if i.isalpha()== 1: s += i else: pass print(s[::-1]) What's the mistake??

17th May 2020, 9:11 AM
Vignesh
Vignesh - avatar
2 Respostas
+ 3
Vignesh D , you should also include in the if check if the letter is whitespace, remove the "== 1"part. Look at the correct code. Hope it helps you šŸ±. https://code.sololearn.com/crd9NplyC678/?ref=app
17th May 2020, 9:25 AM
TheWhĀ”teCat šŸ‡§šŸ‡¬
TheWhĀ”teCat šŸ‡§šŸ‡¬ - avatar
0
TheWhĀ”teCat šŸ‡§šŸ‡¬ thank you mate it works
17th May 2020, 9:30 AM
Vignesh
Vignesh - avatar