Question: can someone help me answer this in python 3! with instructions using # as you answer the question? thank you Alice wants to track how
Alice wants to track how regular she is at exercising. On a single line via Standard input, you're given her exercise record over several days. A Yindicates that she exercised on that day, and an N indicates that she did not. For example, an input line could look like: YYNYYYNNY A streak is defined as a set of consecutive days when Alice exercised i.e. a set of consecutive rs. Your task is to find the length of the longest streak in the input, and print that number on a single line to Standard Output, Example input YYNYYYNNY Output 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
