Skip to content

Commit cf63762

Browse files
.
1 parent f2fd2c2 commit cf63762

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

10X/Python/Class/Make Palindrome.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
s=input()
3131
n=int(input())
3232
if n==0 and len(s)>1:
33-
print(s+s[:-(len(s)+1):-1])
33+
print(s+s[:-(len(s)+1):(-1)])
3434
elif n==1 and len(s)>1:
3535
print(s+s[-2:-(len(s)+1):-1])
3636
if(len(s)==1):

0 commit comments

Comments
 (0)