Given two lists:
x = [1,2,3]
y = [4,5,6]
What is the syntax to:
- Insert
x
intoy
such thaty
now looks like[1, 2, 3, [4, 5, 6]]
? - Insert all the items of
x
intoy
such thaty
now looks like[1, 2, 3, 4, 5, 6]
?
Given two lists:
x = [1,2,3]
y = [4,5,6]
What is the syntax to:
x
into y
such that y
now looks like [1, 2, 3, [4, 5, 6]]
?x
into y
such that y
now looks like [1, 2, 3, 4, 5, 6]
?