Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How do I loop through a list and delete numerical elements that are 1 lower/higher?
Post: RE: How do I loop through a list and delete numeri...

Ok, I know this code is completely wrong, but this is what I'm trying to achieve... i=1 j=1 for i in slice1: for j in count: if slice1[i]==slice1[i+1] and count[j]>count[j+1]: ...
neko General Coding Help 4 4,256 Sep-05-2017, 01:31 PM
    Thread: How do I loop through a list and delete numerical elements that are 1 lower/higher?
Post: How do I loop through a list and delete numerical ...

I'm trying to go through a list and delete elements that have numerical values that are one value greater/lower than the value that I'm looking at. My lists are: slice=[77.0, 115.0, 116.0, 130.0, 14...
neko General Coding Help 4 4,256 Sep-04-2017, 01:16 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020