Python Python Collections Dictionaries Teacher Stats

Rahul Kashyap
Rahul Kashyap
1,599 Points

python dictionaries last challenge! got stuck there don't know why!

showing that didn't get the list expected

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(arg1):
    count = 0
    for key in arg1:
        count += 1
    return count    

def num_courses(arg1):
    count = 0
    for value in arg1.values():
        for items in value:

            count += 1
    return count  

def courses(arg1):
    newList = []
    for value in arg1.values():
        for items in value:
            newList.append(items)
    return newList        
def most_courses(arg1):

        valueCheckDict = {}
        for key in arg1.keys():
            maxCount = 0
            for items in arg1.values():
                maxCount += 1
            valueCheckDict[key] = maxCount
        s = ""
        maxi = 0
        for key1 in valueCheckDict.keys():
            if valueCheckDict[key1] > maxi:
                s = key1 
                maxi = valueCheckDict[key1]

        return s

def stats(teachersDict):
    listOver = []

    count = 0
    for key in teachersDict.keys():
        listInside = []
        listInside.append(key)
        for value in teachersDict[key]:
            count += 1
        listInside.append(count)
        listOver.append(listInside)
    return listOver    



#def most_courses(teacher_dict):
 #   max_count = 0
  #  rockstar = ""
   # for teacher, course_list in teacher_dict.items():
    #    if len(course_list) > max_count:
    # 3       max_count = len(course_list)
      #      rockstar = teacher
   # return rockstar
Rahul Kashyap
Rahul Kashyap
1,599 Points

what I did wrong in my last function stats()!! Not passing!!reply ASAP!