I have a list like this,
List1 = [1,2,3,7,8,11,14,15,16]
And I want to use python to generate a new list that looks like,
List2 = ["1:3", "7:8", "11", "14:16"]
How can I do this, is for loop the option here.
I don't want to use For loop as my list has more than 30 000 numbers.