Skip to content

Commit 953e982

Browse files
authored
Merge pull request #901 from vikasmohann/patch-2
Create palindrome detector.py
2 parents 460a866 + b8f7992 commit 953e982

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Python/palindrome detector.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
list=[1,1,1,1]
2+
copy_list1= list.copy()
3+
copy_list1.reverse()
4+
5+
6+
if(copy_list1 == list):
7+
print("it is a palindrome")
8+
9+
else:
10+
print("it is not a palindrome")

0 commit comments

Comments
 (0)