**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
Posted: Sun Jul 03, 2022 9:59 am
**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
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