My code currently returns a row of a CSV file with print(line):
['0', '0', '0', '0', '0', '0', '0', '0', '1', '0', 'B']
I'd like to count the consecutive instances of zero giving me the largest amount of free space in a single block for that row (seat booking system project). I'd also like to count the amount of zeroes giving me two values - the largest block of zeroes and the total amount of zeroes in the list. Any help is much appreciated!