I have two lists that store data for buyers and sellers. They have Names, Location, Price, Area, and Time stored in each.
I want to match the buyers to the sellers but it's fine if the names don't match. So, I wanted to know if I can do something like:
if datails[x] == details2[y] BUT details[0] != details:
print("Match has been found!")
I need help with the 'but' part. Thanks!
Aucun commentaire:
Enregistrer un commentaire