Off topic:How to trim lists
0
0
Entering edit mode
10.0 years ago

I have some lists as the following:

[34, 34, 34, 35, 34, 37, 37, 37, 34, 34, 34, 34, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 38, 39, 38, 38, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 38, 38, 39, 38, 39, 39, 39, 39, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 38, 38, 36, 38, 14, 14, 36, 38, 18, 33, 19, 19, 37, 38, 19, 18, 18, 37, 38, 39, 39, 38, 38, 38, 38, 14, 27, 32, 28, 30, 35, 35, 37, 38, 37, 14, 14, 14, 28, 14, 30, 16, 16, 37, 38, 39, 38, 12, 29, 12, 31, 35, 13, 31, 13, 12, 13, 13, 25, 14, 13, 12, 25, 31, 31, 34, 37, 14, 15, 25, 37, 37, 37, 37, 38, 15, 26, 25]

[33, 34, 34, 34, 34, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 38, 39, 39, 39, 39, 39, 35, 39, 39, 38, 38, 38, 38, 39, 38, 39, 37, 39, 39, 37, 37, 38, 39, 37, 38, 38, 38, 39, 18, 39, 39, 39, 39, 39, 39, 37, 16, 16, 32, 38, 39, 38, 36, 38, 36, 36, 35, 38, 39, 39, 39, 39, 37, 37, 37, 35, 38, 39, 39, 39, 39, 37, 39, 36, 35, 38, 38, 38, 36, 16, 34, 38, 36, 36, 37, 36, 32, 36, 36, 39, 39, 18, 19, 18, 37, 37, 38, 34, 38, 14, 14, 15, 37, 14, 37, 19, 30, 15, 36, 39, 17, 27, 37, 17, 18, 33, 38, 38, 38, 39, 38, 39, 38, 38, 38, 37, 35, 36, 34, 39, 33, 37, 39]

How do I write a function which can trim the list from the point with three consecutive numbers<20?

Thanks

next-gen • 1.8k views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 2662 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6