fork download
  1. # your code goes here
  2. class Solution:
  3. # @param A : integer
  4. # @return an integer
  5. def isPalindrome(self, A):
  6. strlen = len(A)
  7. for i in range(0, strlen):
  8. if A[i] != A[strlen]:
  9. return False
  10. break
  11. return True
Success #stdin #stdout 0.02s 9240KB
stdin
Standard input is empty
stdout
Standard output is empty