Python Python Collections Lists Creating lists

Lukas Johmann
Lukas Johmann
823 Points

I can't complete this challenge

Is this a bug? I am doing everything right I thought.

Challenge Task 1 of 1 This challenge is just meant as a refresher. Create a single new list variable named my_list. Put 3 numbers and 2 strings into it in whatever order you want. For the last member, though, add another list with 2 items in it.

lists.py
my_list = [2, 3, 4, "st", "to", ["sa", "sae"]]

2 Answers

Luca James
Luca James
1,176 Points

It has to be a bug as I am getting the same thing.. If you look at my code I even tried to make a blank list and appending/extending but it still wont recognize my_list

Luke Heald
Luke Heald
729 Points

Try this guys:

my_list = [11, 8, 9, 'a', 'b', [1, 2]]