<prompt> Andika ufumbuzi wa hii katika Python: Kutoa binary safu namba, kurudi idadi ya juu ya mfululizo 1s katika safu.  <response>: Heres the Python solution to find the maximum number of consecutive 1s in a binary array:def find_max_consecutive_onesnums: max_count 0 curr_count 0 for num in nums: if num 1: curr_count 1 max_count maxmax_count, curr_count else: curr_count 0 return max_countYou can call this function using the binary array as an argument and it will return the maximum number of consecutive 1s in the array. For example:binary_array 1, 1, 0, 1, 1, 1max_consecutive_ones find_max_consecutive_onesbinary_arrayprintmax_consecutive_ones Output: 3 