Use Python to check whether a given string is a palindrome (e.g. "abccba" is a palindrome).
abcba
def isPalindrome(string):
 if string == string[::-1]: # Check if string is the same backwards
return True
 else:
 return False

isPalindrome('abcba') # Output: True