PY
py
1
2
3
4
5
6
7
8
9
"""
https://www.sololearn.com/Discuss/2357237/?ref=app
Added code to work it better.
"""
def strip_chars(st):
return "".join(c for c in st if c.isalpha() or c.isspace())
print(strip_chars("d89%l++5r19o7W *o=l645le9H"[::-1]))
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run