List Comprehension

#Creating a dictionary using this shortened syntax.
new_dict = {new_key: new_value for item in list}
#Keyword Method
new_dict = {new_key: new_value for (key,value) in dict.items()}

Conditional Dictionary Comprehension

new_dict = {new_key: new_value for (key,value) in dict.items() if test}
names = ['Alex', 'Beth', 'Caroline', 'Dave', 'Eleanor', 'Freddie']
import random
students_scores = {student:random.randint(1, 100) for student in names}

---------

{'Alex': 80, 'Beth': 79, 'Caroline': 62, 'Dave': 67, 'Eleanor': 44, 'Freddie': 73}
names = ['Alex', 'Beth', 'Caroline', 'Dave', 'Eleanor', 'Freddie']
students_scores = {'Alex': 80, 'Beth': 79, 'Caroline': 62, 'Dave': 67, 'Eleanor': 44, 'Freddie': 73}
#passed_student = {student: students_scores[student] for student in students_scores if students_scores[student] >= 60}

#Angela's method
passed_student = {student:score for (student,score) in students_scores.items() if score >= 60}

---------

{'Alex': 80, 'Beth': 79, 'Caroline': 62, 'Dave': 67, 'Freddie': 73}