Try to pass the dictionary into the function to print them out, but it throws error: most_courses() takes 0 positional arguments but 1 was given
def most_courses(**diction):
for key, value in diction.items():
print("{} {}".format(key,value))
most_courses({'Andrew Chalkley': ['jQuery Basics', 'Node.js Basics'],'Kenneth Love': ['Python Basics', 'Python Collections']})
I have used **kwargs but why cant python unpack the dictionary?