— Some chat with *dialogflow
— If i have this
>> my_lists
['list']
[]
['list too']
HO DO I REMOVE THAT EMPTY LIST ?
— Some chat with api.ai
AI - stans for Artificial Intelligence
— An empty list in boolean context is False
— You can sure use that to your advantage, depending on what you're trying to do.
— So
if list == True:
res = my_lists
else:
pass
print (res)
— Recipe for false positives
— [z for z in my_lists if z != []]
like that ?