I have a large list that contains 30000 other lists. The large list contains a list of a string and two other lists. Here is an example:
large_list = [
...
['maj', [4, 7], ['3', '5']],
['maj7', [4, 7, 11], ['3', '5', '7']],
...
]
I want to iterate through this large_list and find the smaller list by looking for the name (maj, maj7, etc.).
What is the fastest way of doing this?
I had thought to put the list in a .txt file and reading line by line, but I don't really know if that's faster. All I know is it takes less of a toll on my IDE, as having a list of 30000 lines makes any coding sluggish.