AI can only take you so far. 🌟 Start with core skills in JavaScript, HTML, CSS, or Python. 🚀

Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • Qiang Lan
    Qiang Lan
    1,383 Points

    About dictionary.updateValue in Xcode Version 7.3.1 (7D1014)

    Posted August 22, 2016 6:53pm by Qiang Lan
    Qiang Lan
    1,383 Points
    • iOS
    • Swift 2.0 Collections and Control Flow
    • Dictionaries
    • Recap: Dictionaries

    3 Answers

  • Ethan Haezebroeck
    Ethan Haezebroeck
    16,767 Points

    Why is this false? Don't both of these methods update a value for a key, or create a new key and a new value.

    Posted June 12, 2016 5:58am by Ethan Haezebroeck
    Ethan Haezebroeck
    16,767 Points
    • iOS
    • Swift 2.0 Collections and Control Flow
    • Dictionaries
    • Recap: Dictionaries

    0 Answers

  • Chang Xu
    Chang Xu
    3,248 Points

    Why are these two lines of code not equivalent?

    Posted May 21, 2016 3:39am by Chang Xu
    Chang Xu
    3,248 Points
    • iOS
    • Swift 2.0 Collections and Control Flow
    • Dictionaries
    • Recap: Dictionaries

    4 Answers

  • MIchael Montoya
    MIchael Montoya
    3,222 Points

    Why are these False? Dictionaries.

    Posted May 8, 2016 9:20am by MIchael Montoya
    MIchael Montoya
    3,222 Points
    • iOS
    • Swift 2.0 Collections and Control Flow
    • Dictionaries
    • Recap: Dictionaries

    2 Answers

  • Jeff Bennion
    Jeff Bennion
    406 Points

    There was a discussion months ago about this being a confusing question: is [3] an index or array. Why isn't it fixed?

    Posted April 22, 2016 6:45am by Jeff Bennion
    Jeff Bennion
    406 Points
    • iOS
    • Swift 2.0 Collections and Control Flow
    • Dictionaries
    • Recap: Dictionaries

    1 Answer

  • Bjorn Chambless
    STAFF
    Bjorn Chambless
    Treehouse Guest Teacher

    dict[3]="value" & dict.updateValue("value",forKey:3) are equivalent for a dict of type [Int:String]. Quiz says false

    Posted April 10, 2016 1:49am by Bjorn Chambless
    Bjorn Chambless
    Treehouse Guest Teacher
    • iOS
    • Swift 2.0 Collections and Control Flow
    • Dictionaries
    • Recap: Dictionaries

    1 Answer

  • Naidy Phoon
    Naidy Phoon
    863 Points

    Where are these two different?

    Posted March 18, 2016 1:56pm by Naidy Phoon
    Naidy Phoon
    863 Points
    • iOS
    • Swift 2.0 Collections and Control Flow
    • Dictionaries
    • Recap: Dictionaries

    1 Answer

  • Edward Parks
    Edward Parks
    1,385 Points

    Not Equivalent?!

    Posted February 6, 2016 8:18pm by Edward Parks
    Edward Parks
    1,385 Points
    • iOS
    • Swift 2.0 Collections and Control Flow
    • Dictionaries
    • Recap: Dictionaries

    1 Answer

  • Drew Butcher
    Drew Butcher
    33,160 Points

    Difference between myDictionary.updateValue("yetAnotherValue", forKey: 3) and myDictionary[3] = "yetAnotherValue".

    Posted February 1, 2016 12:27am by Drew Butcher
    Drew Butcher
    33,160 Points
    • iOS
    • Swift 2.0 Collections and Control Flow
    • Dictionaries
    • Recap: Dictionaries

    1 Answer

  • Andreea Onu
    Andreea Onu
    2,167 Points

    The right answer on this question seems to be "True", but not the "False" as you indicate. Please explain

    Posted January 6, 2016 7:28pm by Andreea Onu
    Andreea Onu
    2,167 Points
    • iOS
    • Swift 2.0 Collections and Control Flow
    • Dictionaries
    • Recap: Dictionaries

    1 Answer

  • Eduardo Calvachi
    Eduardo Calvachi
    6,049 Points

    Quiz Question about equivalent ways of updating Dictionary

    Posted December 24, 2015 5:43pm by Eduardo Calvachi
    Eduardo Calvachi
    6,049 Points
    • iOS
    • Swift 2.0 Collections and Control Flow
    • Dictionaries
    • Recap: Dictionaries

    1 Answer

  • Sebastian Shelley
    Sebastian Shelley
    1,388 Points

    How come these two statements aren't equivalent?

    Posted December 2, 2015 1:48am by Sebastian Shelley
    Sebastian Shelley
    1,388 Points
    • iOS
    • Swift 2.0 Collections and Control Flow
    • Dictionaries
    • Recap: Dictionaries

    1 Answer

  • ITstudies Adelaide
    ITstudies Adelaide
    6,396 Points

    Swift 2.0 Dictionary

    Posted November 12, 2015 1:01pm by ITstudies Adelaide
    ITstudies Adelaide
    6,396 Points
    • iOS
    • Swift 2.0 Collections and Control Flow
    • Dictionaries
    • Recap: Dictionaries

    0 Answers

  • J B
    J B
    942 Points

    Dictionary quiz seems to be incorrect?

    Posted November 9, 2015 1:24pm by J B
    J B
    942 Points
    • iOS
    • Swift 2.0 Collections and Control Flow
    • Dictionaries
    • Recap: Dictionaries

    5 Answers

  • Minh Pham
    Minh Pham
    724 Points

    What is wrong with these two lines of code?

    Posted October 27, 2015 8:35am by Minh Pham
    Minh Pham
    724 Points
    • iOS
    • Swift 2.0 Collections and Control Flow
    • Dictionaries
    • Recap: Dictionaries

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.