Fred Agbo
October 16, 2026
NyVK12
cool = ['blue', 'violet']
warm = ['red', 'orange']
colors = [cool, warm]
other_colors = [['blue', 'violet'],
['red', 'orange']]
print(colors == other_colors)
print(colors is other_colors)
cool[0] = 'indigo'
warm = ['orange', 'yellow']
print(colors)
print(other_colors)
.copy() list methodlist() function will return a
new objectWhat would the below code print out at the end?
ballroom = ['Miss Scarlet', 'Mr. Green', 'Prof Plum']
hall = ['Mrs. Peacock', 'Col. Mustard']
study = ['Mrs. White']
house = [ballroom, hall, study]
hall = hall + study
for character in ballroom:
if character[0] == 'P':
house[1][0] = character
print(hall)
maze.py file, enter in your pair/trios
namesMazeCell objectNone, but
sometimes one of the items you need!None)
MazeCells by
using the dropdown menu that appearstwisty function when it is
called at the bottom of the program, and then run the program normally.
Did you escape?!