Answered step by step
Verified Expert Solution
Link Copied!

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?
thank you
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database System

Authors: Elmasri Ramez And Navathe Shamkant

7th Edition

978-9332582705

More Books

Students also viewed these Databases questions

Question

=+Trainers from headquarters? Local trainers? Independent trainers?

Answered: 1 week ago