✨ Earn college credits in Cybersecurity, JS, HTML, CSS and 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

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

  • 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
    • Showing results for:
    • Python
    • Python Collections (Retired)
    • Dictionaries
    • Dictionary Iteration
    • Close
  • fahad lashari
    fahad lashari
    7,693 Points

    Code suggestion

    Posted on Dec 17, 2016 by fahad lashari
    fahad lashari
    7,693 Points
    • Python
    • Python Collections (Retired)
    • Dictionaries
    • Dictionary Iteration

    2 Answers

  • yenny panceta
    yenny panceta
    130 Points

    not returnig same order looping a dict

    Posted on Dec 2, 2016 by yenny panceta
    yenny panceta
    130 Points
    • Python
    • Python Collections (Retired)
    • Dictionaries
    • Dictionary Iteration

    1 Answer

  • V K
    V K
    5,237 Points

    How normal is it to be completely lost on the challenges?

    Posted on Nov 4, 2016 by V K
    V K
    5,237 Points
    • Python
    • Python Collections (Retired)
    • Dictionaries
    • Dictionary Iteration

    4 Answers

  • Nigel Hall
    Nigel Hall
    4,650 Points

    Am I the only one laughing when Kenneth says "Let's just see what happens when we play around with our dicts?"

    Posted on Jun 7, 2016 by Nigel Hall
    Nigel Hall
    4,650 Points
    • Python
    • Python Collections (Retired)
    • Dictionaries
    • Dictionary Iteration

    5 Answers

  • saro lin
    PLUS
    saro lin
    Courses Plus Student 531 Points

    code didn't work on Treehouse

    Posted on Feb 3, 2016 by saro lin
    saro lin
    Courses Plus Student 531 Points
    • Python
    • Python Collections (Retired)
    • Dictionaries
    • Dictionary Iteration

    1 Answer

  • Lance McCormick
    Lance McCormick
    7,553 Points

    Stats Challenge (Step 3) - How can I improve my code?

    Posted on Jan 6, 2016 by Lance McCormick
    Lance McCormick
    7,553 Points
    • Python
    • Python Collections (Retired)
    • Dictionaries
    • Dictionary Iteration

    2 Answers

  • Mit Sengupta
    Mit Sengupta
    13,823 Points

    What is the wrong with the 3rd challenge?

    Posted on Dec 27, 2015 by Mit Sengupta
    Mit Sengupta
    13,823 Points
    • Python
    • Python Collections (Retired)
    • Dictionaries
    • Dictionary Iteration

    2 Answers

  • Andrew Ge
    Andrew Ge
    2,158 Points

    Dict Methods: Nomenclature

    Posted on Dec 19, 2015 by Andrew Ge
    Andrew Ge
    2,158 Points
    • Python
    • Python Collections (Retired)
    • Dictionaries
    • Dictionary Iteration

    1 Answer

  • qlpxjevhuv
    qlpxjevhuv
    10,503 Points

    (Stats Challenge) Code Check: Room for Improvement?

    Posted on Nov 14, 2015 by qlpxjevhuv
    qlpxjevhuv
    10,503 Points
    • Python
    • Python Collections (Retired)
    • Dictionaries
    • Dictionary Iteration

    1 Answer

  • Chih-Wei Hsu
    Chih-Wei Hsu
    11,132 Points

    why does print return the same order to which key-value pairs have been first established in a dictionary?

    Posted on Oct 7, 2015 by Chih-Wei Hsu
    Chih-Wei Hsu
    11,132 Points
    • Python
    • Python Collections (Retired)
    • Dictionaries
    • Dictionary Iteration

    1 Answer

  • Emmet Lowry
    Emmet Lowry
    10,196 Points

    Dont understand for loops

    Posted on May 28, 2015 by Emmet Lowry
    Emmet Lowry
    10,196 Points
    • Python
    • Python Collections (Retired)
    • Dictionaries
    • Dictionary Iteration

    2 Answers

  • James Whiting
    James Whiting
    39,124 Points

    Regarding objective 3 in Teacher Stats...

    Posted on Apr 16, 2015 by James Whiting
    James Whiting
    39,124 Points
    • Python
    • Python Collections (Retired)
    • Dictionaries
    • Dictionary Iteration

    1 Answer

  • Igors Smirnovs
    Igors Smirnovs
    10,441 Points

    Function returns only 1st item of dictionary. How to iterate through all keys and values in function?

    Posted on Mar 22, 2015 by Igors Smirnovs
    Igors Smirnovs
    10,441 Points
    • Python
    • Python Collections (Retired)
    • Dictionaries
    • Dictionary Iteration

    1 Answer

  • Igors Smirnovs
    Igors Smirnovs
    10,441 Points

    Off topic. Is there a specific reason why you embrace print statements with parentheses? e.g. print('somethinh')

    Posted on Feb 12, 2015 by Igors Smirnovs
    Igors Smirnovs
    10,441 Points
    • Python
    • Python Collections (Retired)
    • Dictionaries
    • Dictionary Iteration

    1 Answer

  • Andrea Bianchi
    Andrea Bianchi
    9,127 Points

    Problem with the last challenge.

    Posted on Feb 7, 2015 by Andrea Bianchi
    Andrea Bianchi
    9,127 Points
    • Python
    • Python Collections (Retired)
    • Dictionaries
    • Dictionary Iteration

    2 Answers

  • Stephanie Marson
    Stephanie Marson
    7,627 Points

    Python Code works in Command Prompt but not Treehouse

    Posted on Dec 21, 2014 by Stephanie Marson
    Stephanie Marson
    7,627 Points
    • Python
    • Python Collections (Retired)
    • Dictionaries
    • Dictionary Iteration

    1 Answer

  • David Bell
    David Bell
    16,997 Points

    Why is the output of my_dict.values() different in the video, compared to the challenge or workspace compiler?

    Posted on Nov 30, 2014 by David Bell
    David Bell
    16,997 Points
    • Python
    • Python Collections (Retired)
    • Dictionaries
    • Dictionary Iteration

    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.