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 Python Collections (2016, retired 2019) Dictionaries Teacher Stats

Oleksandr Krasnovskyy
Oleksandr Krasnovskyy
3,312 Points

YOU SHOULD TALK ABOUT SOMETHING IN COURSE. THE TEACHER JUST GOES THROUGH EVERYTHING WITHOUT NORMALLY EXPLAINING IT.

YOU SHOULD TALK ABOUT SOMETHING IN COURSE. THE TEACHER JUST GOES THROUGH EVERYTHING WITHOUT NORMALLY EXPLAINING IT. WE AREN'T PROFESSIONALS . I DONT GET WHAT IN THE WORLD THIS PROGRAM WANTS FROM ME. IN COURSE THEY EXPLAIN 2+2, BUT THE PROBLEMS ARE FROM LINEAR ALGEBRA (ANALOGY)

teachers.py
# The dictionary will look something like:
# {'Andrew Chalkley': ['jQuery Basics', 'Node.js Basics'],
#  'Kenneth Love': ['Python Basics', 'Python Collections']}
#
# Each key will be a Teacher and the value will be a list of courses.
#
# Your code goes below here.
def num_teachers(teachers):
    return len(teachers)

def num_courses(teachers):

    return 
Kevin Gates
Kevin Gates
15,052 Points

No offense, but all caps just makes you look childish. I understand you want to know and understand. If you have questions just ask normally.

1 Answer

Dane Parchment
MOD
Dane Parchment
Treehouse Moderator 11,075 Points

It looks to me like you are having problems either recalling information from previous videos, or formulating solutions to problems.

For the first issue, I recommend re-watching the previous videos, and either take notes on or actually practice with the information you learn.

For the second issue, there really isn't much the staff can do to help you with this. Giving you the solution won't help you become a better programmer, so you need to learn how to solve problems using the tools (languages and concepts) that have been provided to you. So maybe you should practice using dictionaries in a text-editor or the workplaces.

Finally, what exactly is confusing you? You have stated that the teachers aren't teaching you stuff, but what is the problem you are having? The syntax for dictionaries? The wording of the problem in the challenge? I can't help but feel like you are blaming the wrong people here.

You need to take a step back, and relax for a little bit. Take a break, drink a coffee, watch a youtube video, play a video game, anything really. Once you have calmed down and cleared your mind a bit, you can return and try to tackle the problem again.

P.S. - Using all caps doesn't look good, it makes you appear childish/immature and that is not going to make people want to help you.