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

can someone help me answer this in python 3! with instructions using # as you answer the question?
thank you
can someone help me answer this in python 3! with instructions using

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!