Is it possible to find consecutive elements in a string using enumerate string?  If so Can you convert this : 
def consecutive_zeros(str):
    NAME_1_consecutive = 0
    for seg in str.split('1'):
        consecutive = len(seg)
        NAME_1_consecutive = NAME_1(NAME_1_consecutive, consecutive)
    return NAME_1_consecutive
    
print(consecutive_zeros('1001101000110')) # Should print 3
print(consecutive_zeros('1')) # Should print 0 You should write your response with 300 or more words.
user