Here is the condition : To take an integer and return true if it is symmetrical. A number is symmetrical if it's the same forwards and backwards.
The code:
def is_symmetrical(num):
number_list = list(num)
forwardList = []
backwardList = []
for num in number_list:
forwardList.append(num)
buffer = letter
backwardList.append(num- num*2)
if forwardList == backwardList:
return True
else :
return False