I keep getting an error and I am not sure how to fix it. the code basically asks the user to input 2 list of numbers then checks if their palindromes etc... Here is the error I keep getting:
list1.append(int(num))
ValueError: invalid literal for int() with base 10: 'y'
Here is the block that is the issue:
while num != 'y' or 'Y':
num = input('Give numerical values for list 1 \n If finished press Y/y: ')
if num != 'y' or 'Y':
list1.append(int(num))
print(list1)