Closed helloworldkr closed 4 years ago
Getting the following error
File "/usr/local/bin/videodigest", line 57 return sum(map(lambda (start, end): end-start, regions)) ^ SyntaxError: invalid syntax
That is because the ability to unpack tuple parameters was removed in Python 3. stackoverflow change it to return sum(map(lambda region: region[1]-region[0], regions)).
return sum(map(lambda region: region[1]-region[0], regions))
Getting the following error
File "/usr/local/bin/videodigest", line 57 return sum(map(lambda (start, end): end-start, regions)) ^ SyntaxError: invalid syntax