Exercise: List Comprehension II
Here, we use list comprehension to extract the first character of each name in the
names
list. However, there's a small mistake. Fix the code to get the correct output.Premium
Python
Setting up Python environment...
Output