« first day (412 days earlier)      last day (981 days later) » 

06:32
0
Q: Need to eliminate extra tuples based on a condition

user113177this is the list of tuples I have: [(8, 28), (17, 28), (29, 28)] Expected output: [(8, 28), (29, 28)] I want to keep only the first tuple and the last tuple based on a condition. The condition should say that as long as the first or last elements are the same or within +_1 range, then keep only...

1 message moved from The Nineteenth Byte

« first day (412 days earlier)      last day (981 days later) »