Question: We will say that a string is boring if the same sequence of three letters appears more than once in the string. For example, the

 We will say that a string is boring if the same

We will say that a string is boring if the same sequence of three letters appears more than once in the string. For example, the following string is boring: JONATHON LIKES PYTHON But these strings are not boring: ALICE LIKES PYTHON I HEAR THE ART Write a program that determines if a given string is boring. You can assume that the string only contains upper-case letters and spaces. In [ ]: def boring(s): # Your code here return ans In [ ]: # Your Provided Sample Test Cases print("#1", boring ("JONATHON LIKES PYTHON') == True) print("#2", boring ('ALICE LIKES PYTHON') == False)

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!