I wrote this code to sum a number and its reverse:
#sum the multiple of the first number and its reversed
zipped_lists = zip(primo, reversedList)
res = [x + y for (x, y) in zipped_lists]
print (res)
#search common values in "res" and "secondo"
common_list = set(res).intersection(secondo)
Now that I isolated significant numbers, I need to return to the original number listed in primo
. I've no idea how to do that. Please, help me :(