Intermediate
Refactor a Python Loop
Optimize a Python loop using list comprehensions.
📝 Contenu du Prompt
Refactor the following Python code snippet to use list comprehensions instead of a for loop. The original code iterates through a list of numbers and creates a new list containing only the even numbers multiplied by 2. Provide the optimized code snippet and a brief explanation of the performance benefit.