I'm having trouble adding numbers to a list that is already in a list. For example, say I'm given:
L = [[1, 2, 3], [100, 101, 102]] I'm trying to append to L[1] to get:
L = [[1, 2, 3, 4, 5, 6], [100, 101, 102]] The way I was going about this was L[1].extend([4, 5, 6]) but was getting the result None.
Any help would be appreciated.