So I am making a simplifying program to find the biggest number that can be divisible by the same number for both lists which I already found a way to partially do... I need a way so that I can find a common value from both the given lists which is also the highest common value in both the lists. Like the biggest number present in both the given lists should be selected and returned, I dont have a code yet Im still in the process of planning what to do
Example: list1 = [2,4,6,12] list2 = [2,4,6,8,14]
The answer I need is 6 as it is the highest common number from both of these lists, it shouldn't be 2 or 4 since they are not the highest value. I hope my explanation is understandable to write a reply. Thank You