Given the following Python function, can you please rewrite it in a more pythonic form?

def double_numbers(numbers):
    doubled = []
    for number in numbers:
        doubled.append(number * 2)
    return doubled
user
Here is a more Pythonic version of the function using a list comprehension:

def double_numbers(numbers):
    return [number * 2 for number in numbers]


This function does the same thing as the original function, but it uses a list comprehension instead of a for loop to create the list of doubled numbers. List comprehensions are a more concise and expressive way of creating lists in Python.
assistant
Do you know where I can find more information about Python lists?
user
Yes you can query the search engine for these entries:

Python List (With Examples) - Programizhttps://www.programiz.com 
All You Need To Know About Python List - Simplilearnhttps://www.simplilearn.com
Everything you need to know about lists in Pythonhttps://towardsdatascience.com 
Python Lists - GeeksforGeekshttps://www.geeksforgeeks.org 
Data Structures — Python 3.11.2 documentationhttps://docs.python.org
assistant