**NO NUMPY A list of data =[2,2,6,5,2,1,4,5]. There is a threshold which is 3, every time the number passes 3 it is retu

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

**NO NUMPY A list of data =[2,2,6,5,2,1,4,5]. There is a threshold which is 3, every time the number passes 3 it is retu

Post by answerhappygod »

**NO NUMPY
A list of data =[2,2,6,5,2,1,4,5]. There is a threshold which is3, every time the number passes 3 it is returned TRUE(don't need towrite a code for that).
Write a python code so that when there are 2 or more consecutiveFALSES, the system will return the position of the firstFALSE and the number of falses there are behind the firstfalse before is True again. For example with the data given thesystem should return[(0,2),(4,2)]
**NO NUMPY
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply