So I'm taking an intro computer science course right now, and I was wondering how to check if there were any duplicates within multiple lists. I've read up on these answers:
How can I compare two lists in python and return matches and How to find common elements in list of lists?
However, they're not quite what I'm looking for. Say for example I have this list of lists:
list_x = [[66,76],
[25,26,27],
[65,66,67,68],
[40,41,42,43,44],
[11,21,31,41,51,61]]
There are two sets of duplicates (66 and 41), although that doesn't really matter to me. Is there a way to find if the duplicates exist? What I'm looking for is if there are duplicates, the function will return True (or False, depending on what I want to do with the lists). I get the impression that I should use sets (which we have not learned about so I looked up on the internet), use for loops, or write my own function. If it's the case that I'll need to write my own function, please let me know, and I'll edit with an attempt later today!