[Tutor] What's in a name?
Danny Yoo
dyoo at hashcollision.org
Fri Jan 3 10:50:45 CET 2014
Quick thing. Please look at the following small program:
#################
d1 = {1 : 'one'}
d2 = d1
d2[2] = 'two'
print(d1)
print(d2)
#################
Predict what this prints out. Write your prediction on a piece of paper.
Then run the program. Does it match what you wrote?
If not, start asking questions. If so, then I'm puzzled. :P
The reason I ask is because of the comment:
> But chutes and ladders are dictionaries that should remain
> unchanged, for the purpose of future games.
which has several meanings that I did not anticipate. So I need to
make sure you're ok on all those things. :P
More information about the Tutor
mailing list