List Comprehension

List Comprehension is the process of generating a list from another list based on some evaluation.


Example:
Let's create a list from of names with the letter a from some list of known names

names = ['John', 'Bob', 'Anne', 'Jose', 'Liam', 'Nate', 'Paul']

new_names = [ name for name in names if 'a' in names.lower() ]
new_names
[ 'Anne', 'Liam', 'Nate', 'Paul' ]