Our end of year sale ends soon 👀 Get a year of Courses for $150 (40% off!)

Jump into new course Python Dates and Times 🐍

Learn React with us!

Dive into new course Game Development with Phaser 👾

💥 ALL NEW: Code Adventures! ⚡ Dare to embark on a front end coding adventure 🌟

Get job-ready with our Career Toolbox Track's career advice, resume tips, and more 🧰

🤖 Check out all our AI content here 👀

Learn about our new Community Discord server here and join us on Discord here!

Students: got a cool project or resource to share? Submit it to Treehouse Links! 🤩

  • Home
  • Free Trial
  • Sign In
  • Plans
  • Tracks
  • Library
  • Community
  • Code Adventures
  • Support
  • Jobs
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • 21st Century Skills
      • • AI
      • • Android
      • • APIs
      • • Business
      • • C#
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Equity, Diversity, and Inclusion (EDI)
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • PHP
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
  • Matthew Daugherty
    Matthew Daugherty
    1,017 Points

    Trouble with Key

    Posted August 18, 2016 9:56pm by Matthew Daugherty
    Matthew Daugherty
    1,017 Points
    • iOS
    • Swift 2.0 Collections and Control Flow
    • Dictionaries
    • Modifying a Dictionary

    1 Answer

  • Mert Kahraman
    Mert Kahraman
    12,118 Points

    How do we change the existing keys without changing their values?

    Posted June 7, 2016 1:17pm by Mert Kahraman
    Mert Kahraman
    12,118 Points
    • iOS
    • Swift 2.0 Collections and Control Flow
    • Dictionaries
    • Modifying a Dictionary

    2 Answers

  • Isaac Wong
    Isaac Wong
    2,106 Points

    Is there a reason to use the updateValue method vs. just typing airportCodes["LGA"] = "La Guardia International Airport?

    Posted March 31, 2016 12:42am by Isaac Wong
    Isaac Wong
    2,106 Points
    • iOS
    • Swift 2.0 Collections and Control Flow
    • Dictionaries
    • Modifying a Dictionary

    1 Answer

  • Ashley Boucher
    Ashley Boucher
    407 Points

    On Inserting Key Value Pairs

    Posted February 28, 2016 12:00am by Ashley Boucher
    Ashley Boucher
    407 Points
    • iOS
    • Swift 2.0 Collections and Control Flow
    • Dictionaries
    • Modifying a Dictionary

    1 Answer

  • Vera Hsu
    Vera Hsu
    997 Points

    How to declare an empty array? (sometimes we are not sure what the content will be)

    Posted February 7, 2016 4:53am by Vera Hsu
    Vera Hsu
    997 Points
    • iOS
    • Swift 2.0 Collections and Control Flow
    • Dictionaries
    • Modifying a Dictionary

    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
  • Perks
  • Public Library Access
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2023 Treehouse Island, Inc.