Drama, Film, and Mass Communication homework help

Write function returns the length of longest run of “1” in the string consumed (of 0s and 1s) a run of “1” is a sequence of adjacent “1”can not use recursioncan not create new string /listgo through the string only onceCan not import modules except mathuse python 3 or higherFor examplef1(“001001”)returns 1f1(“000000”)returns 0f3(“10111000110”)returns 3

 
"Our Prices Start at $11.99. As Our First Client, Use Coupon Code GET15 to claim 15% Discount This Month!!"

"Our Prices Start at $11.99. As Our First Client, Use Coupon Code GET15 to claim 15% Discount This Month!!":

Get started