Python List Comprehensions
List comprehensions provide a concise way to create lists based on existing lists. They are faster and more readable than standard for-loops.
Syntax
[expression for item in iterable if condition]
Example
numbers = [1, 2, 3, 4, 5, 6]
evens = [n for n in numbers if n % 2 == 0]
print(evens) # Output: [2, 4, 6]
Your Task
Given a list of domain names, create a list comprehension that extracts only the domains that end with .com and converts them to lowercase.