Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMIchael Montoya
3,222 PointsWhy are these False? Dictionaries.
The following code snippets are equivalent
dict.updateValue("yetAnotherValue", forKey: 3) and dict[3] = "yetAnotherValue"
They both seem to do the same thing to me.
Thanks in advance!
2 Answers
jcorum
71,830 PointsMichael, good catch! They are equivalent, if by "equivalent" you mean "do the same thing" (rather than, say, spelled the same)!. And I don't know what other definition of equivalence Treehouse would be using.
You should report the bug to Treehouse.
MIchael Montoya
3,222 PointsThank goodness. I was looking frantically for what I missed. Thanks!