Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialRonald Greer
Front End Web Development Techdegree Graduate 56,430 PointsCan anyone help me with these fill in the blank questions?
All three of the fill in the blank questions are stumping me and are getting quite frustrating, if any one could provide an answers or point me into the direction of them, that would be great.
2 Answers
David Loder
4,987 PointsHey Ronald, I took some time to look at the question and good news! I have results! This one was just reviewing the video to understand what to put for multiple values.
student = {'name': 'Craig', 'major': 'Computer Science', 'credits': 36}
for key, val in student.items():
print(key)
print(value)
Notice how we just put ".items" after students.
This next one changed a little bit but the question did say the answer.
student = {'name': 'Craig', 'major': 'Computer Science', 'credits': 36}
for key in student.keys():
print(key)
This one had ".keys" instead as we are only wanting to display the "key" values in the iteration.
The same thing goes for this next question, but you would just have to spell out the whole word for "values" as the question is asking to only display the "vals" in the iteration.
student = {'name': 'Craig', 'major': 'Computer Science', 'credits': 36}
for val in student.values():
print(val)
The last question I think you may figure out as it's a true or false question. But do review the videos before the quiz if you get stuck. Slow down and do your best to understand the information and It will make sense the next time coming around.
Good Luck!
Ronald Greer
Front End Web Development Techdegree Graduate 56,430 PointsThank you david, i highly appreciate your answer and the quick response. Have a great day!:)
David Loder
4,987 PointsAnytime! Let me know if I can help again. I need all the practice I can get too!