We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 460a866 + b8f7992 commit 953e982Copy full SHA for 953e982
1 file changed
Python/palindrome detector.py
@@ -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