Quick question to get your Winters bashed!
I'm looping over a range of integers and I need to check to see that they are also contained within a list of lists (mysublist)
mysublist = [
[4,5,6],
[8,9],
[19,20],
]
for i in range (1, 11):
for sub in mysublist:
if i in sub:
print i
Is there a more Pythonic way than doing a loop within a loop to find said values?