Day 26 List Comprehension

List Comprehension

# What this is going to allow us to do is to only add this new item and only to perform this code if the test actually passes.

new_list = [new_item for item in item_list if test]

#passed_students = {new_key: new_value for (key, value) in student_grades.items() if value >=60 }

234 How to create Lists using List Comprehension ; 235 Squaring Numbers 236 Even numbers

237 Data Overlap

Dictionary Comprehension

240 Dictionary Comprehension

242 Pandas DataFrame