Welcome Back Everyone in this Quick Tutorial I will be Showing You How to compare the values of Two Lists in Python. For This Tutorial You can Either Watch The detailed step by step Video, or simply Copy the Code Snippet Below.
Comparing The Values Of Two Lists in Python
a = [1, 2, 4, 1, 5, 6, 7, 8, 9, 10]
b = [2, 1, 5, 3, 6, 0, 55, 9, 10]
c = []
for number in a:
if number in b:
if number not in c:
c.append(number)
print(c)
Please Feel Free To View the Rest of my Youtube Channel to view Detailed Youtube Tutorials on Python and Mobile Development in IOS and Android.
Great Start