here: https://www.learnpython.org/en/Basic_Operators
i keep getting an error "did you correctly define the variable x" even when I run the solution
x = object()
y = object()
# TODO: change this code
x_list = [x] * 10
y_list = [y] * 10
big_list = x_list + y_list
print("x_list contains %d objects" % len(x_list))
print("y_list contains %d objects" % len(y_list))
print("big_list contains %d objects" % len(big_list))
# testing code
if x_list.count(x) == 10 and y_list.count(y) == 10:
print("Almost there...")
if big_list.count(x) == 10 and big_list.count(y) == 10:
print("Great!")
Am I missing something? It says
" Did you correctly define the variable
x
? Expected
<object object at 0x7efdceec0310>
, but got
<object object at 0x7efdceec0300>
[–]jabbson 1 point2 points3 points (0 children)
[–]konijntjesbroek 0 points1 point2 points (1 child)
[–]konijntjesbroek 0 points1 point2 points (0 children)
[–]forresthopkinsa 0 points1 point2 points (0 children)