Why does the program print empty brackets if I try to run a new print statement without using the variable that we created?
I completed the exercise correctly. Then when I type in print(list(names_and_dogs_names))
at the end I get an empty bracket
I have been playing with this for a while, and things like moving the print(list(names_and_dogs_names)) statement before creating the variable makes printing the variable come out as brackets.
I can’t find the pattern for why it sometimes prints out empty brackets and why it sometimes prints out the correct output of the combined lists.
I also get empty brackets every time i try to run print(list(names_and_dogs_names)) after the first time. However, if I run print(list_of_names_and_dogs_names) multiple times after we created the variable for instruction 2, it prints the correct output of the combined lists as many times as I want. Why does this happen?
Please help I am so confused