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 trial

Python

Sunil Padmanabhan
Sunil Padmanabhan
1,344 Points

Printing Dictionaries

students=[{'Name':'A','Age':34,'Course':'Python'}, {'Name': 'B', 'Age': 31, 'Course': 'Ruby'}, {'Name': 'C', 'Age': 30, 'Course': 'C++'}, {'Name': 'D', 'Age': 33, 'Course': 'C'}, {'Name': 'E', 'Age': 31, 'Course': 'Java'}, {'Name': 'F', 'Age': 32, 'Course': 'Ruby'}, {'Name': 'G', 'Age': 33, 'Course': 'Java'}]

I have created a Dictionaty as above. I know how to print list items and dictionary items. But when both are together I am unable to print them as a tabulated list.

1 Answer

pet
pet
10,908 Points

Sorry I don't know what you mean and please forgive me for taking so long to respond. Hope you've already fixed it by now though.