So I want to create a while loop that will stop once all the Booleans inside a two dimensional list are true (a dictionary specifically).
This is the dictionary I am trying to query.
tasks = {'bathroom':
         {'linus':False, 
         'ola': False, 
         'lex': False, 
         'lotte': False, 
         'yoan': False, 
         'daan': False}, 
    'kitchen':
         {'linus':False, 
         'ola': False, 
         'lex': False, 
         'lotte': False, 
         'yoan': False, 
         'daan': False},
    'garbage':
         {'linus':False, 
         'ola': False, 
         'lex': False, 
         'lotte': False, 
         'yoan': False, 
         'daan': False},
    'recycling':
         {'linus':False, 
         'ola': False, 
         'lex': False, 
         'lotte': False, 
         'yoan': False, 
         'daan': False},
    'corridors':
         {'linus':False, 
         'ola': False, 
         'lex': False, 
         'lotte': False, 
         'yoan': False, 
         'daan': False}}
This is what I have tried to come up with but it doesn't seem to work
while not all(done == true for done in names.values() for names in tasks.values())
 
     
    