I have this list comprehension:
[[x,x] for x in range(3)]
which results in this list:
[[0, 0], [1, 1], [2, 2]]
My solution:
def explode_list(p,n): arr=[] track=0 if n==0: return arr while track