Challenge 1
Make the program report whether alias refers to the same list object as items.
items = [1, 2]
alias = items
print()
Press Ctrl⌘Enter to check your answer
Practice reasoning about identity, mutation, equality, and hashability with small Python programs.
Challenge 1
items = [1, 2]
alias = items
print()
Press Ctrl⌘Enter to check your answer
Challenge 2
items = [1, 2]
print(items)
Press Ctrl⌘Enter to check your answer
Challenge 3
left = [1, 2]
right = [1, 2]
print()
Press Ctrl⌘Enter to check your answer
Challenge 4
label = "Python"
print()
Press Ctrl⌘Enter to check your answer