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
CHALLENGE: Reverse Char Not Words
+10
Author: OR!ON 🛡️
Dark
Public
Save
PY
py
1
2
3
4
5
# reversing string while maintaining word order
'''after pressing RUN, enter your sentence'''
print
(
"Output:"
,
*
[
word
[::
-1
]
for
word
in
input
()
.split
()])
Enter to Rename, Shift+Enter to Preview
OUTPUT