Welcome to the Treehouse Community
Looking to learn something new?
Dez Lin1,462 Points
Python Collections - creating lists
the answer is
my_list = [1,2,3,4,["tre","ees"]]
but why can't I write this?
tree = [4,"tree5"] my_list = [1,2,3,"tree1",tree]
There's nothing wrong with the code you presented in the second option. It runs just fine in my local and online interpreter :)
print(my_list) to test you wind up getting
[1, 2, 3, 'tree1', [4, 'tree5']] as your returned result.