def isPalindrome(n):
	"""Takes in an integer and determines whether it is a palindrome"""
	n = str(n)
	length = len(n)
	increment = 0
	isPalindrome = True
	# well written loop
	while increment < length/2 and isPalindrome:
		if n[increment] == n[length - 1 - increment]:
			increment +=1
		else:
			isPalindrome = False
	return isPalindrome