Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 53c02cf

Browse files
Add files via upload
1 parent 6416c83 commit 53c02cf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎string reversal.py‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
str = "Python is love"
2+
#love is python
3+
a = str.split()
4+
print(a)
5+
b = a[::-1].join(a)
6+
print(b)
7+
c = " ".join(b)
8+
print(c)
9+
10+
# print(" ".join(a[::-1]))

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /