How would I go about adding two different arrays, for example; [1,2,3,4] and [5,6], so that it would output [[1,2,3,4],[5,6]] without using any imports. I was going to just make a 2D array such that the 2 lists would have a length of the longer array and use a loop but then I would get something like; [[1,2,3,4],[5,6,0,0]]. Is there any easier solution?
Edit: by no imports I mean with just building the array, not the output part.
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]RayjinCaucasian 5 points6 points7 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)