Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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?
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 thank you
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started