Question: (Closed) How to trim lists
0
6.7 years ago by
United States
linlinli9901310 wrote:

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 forum • 1.5k views
modified 6.7 years ago by Pierre Lindenbaum133k • written 6.7 years ago by linlinli9901310
1

What's the connection to bioinformatics? This seems like a simple programming question. Also, it's usually a good idea to say which language you're trying to do something in.

What have you tried?

Hello linlinli99013!

We believe that this post is does not fit the main topic of this site.

not related to bioinformatics.

For this reason we have closed your question. This allow us to keep the site focused on the topics that the community can help with.

If you disagree please tell us why in a reply below, we'll be happy to talk about it.

Cheers!