Python Online Compiler & Playground
HTML/CSS/JavaScript
HTML
CSS
Javascript
C++
C
PHP
Java
Python
Swift
C#
Ruby
Node.JS
Kotlin
jQuery
Go
R
TypeScript
Start Python Course
Register
The Spy Life
0
Author: Jalaj Madaan
Dark
Public
Save
PY
py
1
2
3
4
5
6
7
inp =
str
(
input
())
inp = inp
[::
-1
]
new_char =
""
for
i
in
inp
:
if
i
in
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvw
xyz"
or
i ==
" "
:
new_char += i
print
(
new_char
)
Enter to Rename, Shift+Enter to Preview
OUTPUT