Please help.
>>> a = [7, 2, 2, 2, 3, 2]
>>> b = [2, 2, 2, 3, 3, 5]
Expected result: [2, 7, 3, 5]
For a "Pictorial Presentation" , please see https://www.w3resource.com/python-exercises/python-basic-exercise-32.php
set is not allowed. collections is not allowed. Because I am trying to learn loops.
I have tried , without success, doing the opposite of some of the solutions found in Intersection of two lists including duplicates? Because that thread is trying to do the opposite of what I am trying to achieve.
Please also note this question is not the same question as: Python removing items from a list that exist in another list but keeping duplicates that aren't in that intersect nor Python intersection of two lists keeping duplicates nor Python: intersection of 2 lists keeping duplicates from both lists
Thank you very much.