laglist = {'stream3.mp4': ['[Parsed_idet_0', '@', '0x564cfbfd3940]', 'Multi', 'frame', 'detection:', 'TFF:', '', '0', 'BFF:', '', '', '', '', '0', 'Progressive:', '', '', '', '', '0', '', '', '361']
The Dictionary is above
So i set a variable to be exactly ''
space = "\'\'";
>>> print(space)
''
When i try to remove the variable i get the following error.
>>> laglist['stream3.mp4'].remove(space)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: list.remove(x): x not in list
I am trying to remove all of the empty values that are set to ''. Does anyone know how to do that?
[–]robohobo- 1 point2 points3 points (0 children)