What I mean is :
Eg., l = [1, 1, 1, 2, 2, 3, 3, 4]
pack(l) -> [[1,1,1], [2,2], [3,3], [4]]
I want to do this problem in a very basic way as I have just started i.e using loops and list methods.I have looked for other methods but they were difficult for me to understand