def solution(num: int)-> bool:
# your code here
if num == int(str(num)[::-1]):
return True
else:
return False
assert solution(1221) is True
assert solution(123322) is False
assert solution(2022) is False
assert solution(12321) is True
if str(num)==str(num)[::-1]:
return True
else:
return False
assert solution(1221) is True
assert solution(123322) is False
assert solution(2022) is False
def solution(num):
result = True if str(num) == str(num)[::-1] else False
return result
assert solution(1221) is True
assert solution(123322) is False
assert solution(2022) is False
assert solution(“ahha”) is True
assert solution(“ahsdsha”) is False