+ 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??
2 Answers
+ 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
0
TheWhÂĄteCat đ§đŹ thank you mate it works