Skip to main content

NOTICE: On Friday Nov 6, Workspaces will be temporarily unavailable for maintenance.

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

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

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

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • 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.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

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

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord