1students = ['Sarah', 'Mary', 'Anna', 'Charlotte']
2
3# Option 1
4students_lower = map(lambda x: x.lower(), students) # map() produces a generator
5print(list(students_lower)) # give all elements of the generator
6
7# Option 2
8students_lower = [student.lower() for student in students] # list comprehension
9
10# Option 3
11students_lower = (student.lower() for student in students) # generator comprehension
12print(list(students_lower))