list1=[1,2,1] list2=[1,2,3] copy_list1= list1.copy() copy_list1.reverse() if(copy_list1==list1): print("palindrome") else: print("Not palindrome")
To embed this program on your website, copy the following code and paste it into your website's HTML: