master small modif syntax,use of dict comprenhension instead of list comprehension