Skip to main content

🚀 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
  • Orji Ogbonnaya Orji
    Orji Ogbonnaya Orji
    1,403 Points

    I need help with this Quiz

    Posted June 3, 2022 10:32pm by Orji Ogbonnaya Orji
    Orji Ogbonnaya Orji
    1,403 Points
    • Python
    • Introducing Dictionaries
    • Iterating and Packing with Dictionaries
    • Recap of Iterating and Packing with Dictionaries

    1 Answer

  • Asher Orr
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Asher Orr
    Python Development Techdegree Graduate 9,411 Points

    Iterating over only the keys in a dictionary - is there an alternate way to do this, or is there an error w/ this quiz?

    Posted May 13, 2022 7:35pm by Asher Orr
    .a{fill-rule:evenodd;}techdegree seal-36
    Asher Orr
    Python Development Techdegree Graduate 9,411 Points
    • Python
    • Introducing Dictionaries
    • Iterating and Packing with Dictionaries
    • Recap of Iterating and Packing with Dictionaries

    1 Answer

  • Chris Hummel
    Chris Hummel
    13,960 Points

    Where is the syntax shown for this?

    Posted April 30, 2021 7:38pm by Chris Hummel
    Chris Hummel
    13,960 Points
    • Python
    • Introducing Dictionaries
    • Iterating and Packing with Dictionaries
    • Recap of Iterating and Packing with Dictionaries

    2 Answers

  • Jorge Grajeda
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Jorge Grajeda
    Python Development Techdegree Graduate 8,189 Points

    How would I answer this problem?

    Posted April 14, 2021 5:46am by Jorge Grajeda
    .a{fill-rule:evenodd;}techdegree seal-36
    Jorge Grajeda
    Python Development Techdegree Graduate 8,189 Points
    • Python
    • Introducing Dictionaries
    • Iterating and Packing with Dictionaries
    • Recap of Iterating and Packing with Dictionaries

    1 Answer

  • Han Htoo Aung
    Han Htoo Aung
    1,473 Points

    Please fill in the correct answer in each blank provided below.

    Posted November 14, 2020 7:19am by Han Htoo Aung
    Han Htoo Aung
    1,473 Points
    • Python
    • Introducing Dictionaries
    • Iterating and Packing with Dictionaries
    • Recap of Iterating and Packing with Dictionaries

    2 Answers

  • Luke Tate
    PLUS
    Luke Tate
    Courses Plus Student 2,256 Points

    Why doesn't 'items' work, in the for loop when accessing strictly, either key or value?

    Posted November 1, 2020 2:05am by Luke Tate
    Luke Tate
    Courses Plus Student 2,256 Points
    • Python
    • Introducing Dictionaries
    • Iterating and Packing with Dictionaries
    • Recap of Iterating and Packing with Dictionaries

    1 Answer

  • Thomas Ma
    Thomas Ma
    15,199 Points

    Complete this code so that it will iterate over all the key:value pairs in the student dictionary.

    Posted August 14, 2020 5:44pm by Thomas Ma
    Thomas Ma
    15,199 Points
    • Python
    • Introducing Dictionaries
    • Iterating and Packing with Dictionaries
    • Recap of Iterating and Packing with Dictionaries

    1 Answer

  • Thomas Ma
    Thomas Ma
    15,199 Points

    Complete this code so that it will iterate over all the key:value pairs in the student dictionary.

    Posted August 13, 2020 9:22pm by Thomas Ma
    Thomas Ma
    15,199 Points
    • Python
    • Introducing Dictionaries
    • Iterating and Packing with Dictionaries
    • Recap of Iterating and Packing with Dictionaries

    1 Answer

  • Alan Stride
    Alan Stride
    1,660 Points

    Stuck on 'Introducing Dictionaries' task, question 2 and 3 out of 4.

    Posted August 13, 2020 9:08am by Alan Stride
    Alan Stride
    1,660 Points
    • Python
    • Introducing Dictionaries
    • Iterating and Packing with Dictionaries
    • Recap of Iterating and Packing with Dictionaries

    1 Answer

  • ben127127
    ben127127
    1,980 Points

    Confused on this "Introducing Dictionaries" Quiz

    Posted June 30, 2020 7:42pm by ben127127
    ben127127
    1,980 Points
    • Python
    • Introducing Dictionaries
    • Iterating and Packing with Dictionaries
    • Recap of Iterating and Packing with Dictionaries

    2 Answers

  • Kannan A
    Kannan A
    1,291 Points

    In a for statement, why cannot we use object.items to call only for a key or for a value?

    Posted June 30, 2020 7:28am by Kannan A
    Kannan A
    1,291 Points
    • Python
    • Introducing Dictionaries
    • Iterating and Packing with Dictionaries
    • Recap of Iterating and Packing with Dictionaries

    1 Answer

  • Abdullah Al-Romaihi
    Abdullah Al-Romaihi
    2,172 Points

    How is this done...can't find the answer on google nor did I get it from the videos

    Posted June 16, 2020 8:25pm by Abdullah Al-Romaihi
    Abdullah Al-Romaihi
    2,172 Points
    • Python
    • Introducing Dictionaries
    • Iterating and Packing with Dictionaries
    • Recap of Iterating and Packing with Dictionaries

    2 Answers

  • Nicholas Dallas
    Nicholas Dallas
    2,691 Points

    Recap of iterating and packing with dictionaries 2 & 3

    Posted June 4, 2020 2:16am by Nicholas Dallas
    Nicholas Dallas
    2,691 Points
    • Python
    • Introducing Dictionaries
    • Iterating and Packing with Dictionaries
    • Recap of Iterating and Packing with Dictionaries

    1 Answer

  • Aizah Sadiq
    Aizah Sadiq
    2,435 Points

    I am a bit confused

    Posted May 15, 2020 5:27pm by Aizah Sadiq
    Aizah Sadiq
    2,435 Points
    • Python
    • Introducing Dictionaries
    • Iterating and Packing with Dictionaries
    • Recap of Iterating and Packing with Dictionaries

    1 Answer

  • Aizah Sadiq
    Aizah Sadiq
    2,435 Points

    I don't know how to do this

    Posted May 14, 2020 5:27pm by Aizah Sadiq
    Aizah Sadiq
    2,435 Points
    • Python
    • Introducing Dictionaries
    • Iterating and Packing with Dictionaries
    • Recap of Iterating and Packing with Dictionaries

    1 Answer

  • Mark Nembhard
    Mark Nembhard
    1,387 Points

    how to access the keys only in a dictionary?

    Posted April 8, 2020 12:07pm by Mark Nembhard
    Mark Nembhard
    1,387 Points
    • Python
    • Introducing Dictionaries
    • Iterating and Packing with Dictionaries
    • Recap of Iterating and Packing with Dictionaries

    2 Answers

  • ELVIS CHAWAREMERA
    ELVIS CHAWAREMERA
    11,627 Points

    help...i dont know where i am getting wrong the second quiz and third quiz

    Posted February 29, 2020 1:50pm by ELVIS CHAWAREMERA
    ELVIS CHAWAREMERA
    11,627 Points
    • Python
    • Introducing Dictionaries
    • Iterating and Packing with Dictionaries
    • Recap of Iterating and Packing with Dictionaries

    1 Answer

  • Carrington Chirongoma
    Carrington Chirongoma
    7,037 Points

    i'm failing to get the correct answer

    Posted February 25, 2020 12:42pm by Carrington Chirongoma
    Carrington Chirongoma
    7,037 Points
    • Python
    • Introducing Dictionaries
    • Iterating and Packing with Dictionaries
    • Recap of Iterating and Packing with Dictionaries

    1 Answer

  • Kortney Field
    Kortney Field
    14,091 Points

    not "items", what else could it be?

    Posted February 14, 2020 6:35pm by Kortney Field
    Kortney Field
    14,091 Points
    • Python
    • Introducing Dictionaries
    • Iterating and Packing with Dictionaries
    • Recap of Iterating and Packing with Dictionaries

    0 Answers

  • Frances Angulo
    Frances Angulo
    5,311 Points

    for key in student: print(key) should work

    Posted February 6, 2020 3:14pm by Frances Angulo
    Frances Angulo
    5,311 Points
    • Python
    • Introducing Dictionaries
    • Iterating and Packing with Dictionaries
    • Recap of Iterating and Packing with Dictionaries

    1 Answer

  • RIP' FINGALINS"""""""""
    RIP' FINGALINS"""""""""
    2,002 Points

    Help can someone help me with this?

    Posted January 14, 2020 12:30am by RIP' FINGALINS"""""""""
    RIP' FINGALINS"""""""""
    2,002 Points
    • Python
    • Introducing Dictionaries
    • Iterating and Packing with Dictionaries
    • Recap of Iterating and Packing with Dictionaries

    1 Answer

  • Ronald Greer
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Ronald Greer
    Front End Web Development Techdegree Graduate 56,430 Points

    Can anyone help me with these fill in the blank questions?

    Posted December 9, 2019 2:05am by Ronald Greer
    .a{fill-rule:evenodd;}techdegree seal-36
    Ronald Greer
    Front End Web Development Techdegree Graduate 56,430 Points
    • Python
    • Introducing Dictionaries
    • Iterating and Packing with Dictionaries
    • Recap of Iterating and Packing with Dictionaries

    2 Answers

  • Hien Ha
    Hien Ha
    1,417 Points

    Why student.item() is wrong

    Posted November 25, 2019 3:38am by Hien Ha
    Hien Ha
    1,417 Points
    • Python
    • Introducing Dictionaries
    • Iterating and Packing with Dictionaries
    • Recap of Iterating and Packing with Dictionaries

    1 Answer

  • Atang Lekang
    Atang Lekang
    2,509 Points

    How do i complete the code so it iterates over only the values in the student dictionary.

    Posted November 21, 2019 12:08pm by Atang Lekang
    Atang Lekang
    2,509 Points
    • Python
    • Introducing Dictionaries
    • Iterating and Packing with Dictionaries
    • Recap of Iterating and Packing with Dictionaries

    2 Answers

  • Kaden Currier
    Kaden Currier
    1,490 Points

    HELP! Im failing question 2,3,4

    Posted November 15, 2019 9:04pm by Kaden Currier
    Kaden Currier
    1,490 Points
    • Python
    • Introducing Dictionaries
    • Iterating and Packing with Dictionaries
    • Recap of Iterating and Packing with Dictionaries

    1 Answer

  • Antero Perez-Solis
    Antero Perez-Solis
    1,444 Points

    I am unsure what I am supposed to put in for the blank

    Posted October 24, 2019 3:58pm by Antero Perez-Solis
    Antero Perez-Solis
    1,444 Points
    • Python
    • Introducing Dictionaries
    • Iterating and Packing with Dictionaries
    • Recap of Iterating and Packing with Dictionaries

    1 Answer

  • Kurobe Kuro^T_T^
    Kurobe Kuro^T_T^
    5,369 Points

    Complete the code so it will iterate over only the keys in the student dictionary.

    Posted August 4, 2019 5:12pm by Kurobe Kuro^T_T^
    Kurobe Kuro^T_T^
    5,369 Points
    • Python
    • Introducing Dictionaries
    • Iterating and Packing with Dictionaries
    • Recap of Iterating and Packing with Dictionaries

    5 Answers

  • Mathew Sams`
    Mathew Sams`
    279 Points

    If i'm printing both key and value in a dictionary it would be student.items before the print function. What if only key

    Posted July 24, 2019 9:07pm by Mathew Sams`
    Mathew Sams`
    279 Points
    • Python
    • Introducing Dictionaries
    • Iterating and Packing with Dictionaries
    • Recap of Iterating and Packing with Dictionaries

    1 Answer

  • dimas andhana
    dimas andhana
    5,543 Points

    Please help, I still don't get how to answer only keys or value on this dictionary

    Posted July 24, 2019 8:40am by dimas andhana
    dimas andhana
    5,543 Points
    • Python
    • Introducing Dictionaries
    • Iterating and Packing with Dictionaries
    • Recap of Iterating and Packing with Dictionaries

    2 Answers

  • teamz
    teamz
    44,723 Points

    Confusion on For Loop in Python in Intro to Dictionaries

    Posted July 13, 2019 11:11pm by teamz
    teamz
    44,723 Points
    • Python
    • Introducing Dictionaries
    • Iterating and Packing with Dictionaries
    • Recap of Iterating and Packing with Dictionaries

    2 Answers

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