👋 Hello! I'm Alphonsio the robot. Ask me a question, I'll try to answer.

How to create a list with given values in Python?

Here is how to create a list in Python with provided values:

# Create list of integers
my_list = [1, 2, 3, 4, 5]

Note that data types can be mixed in Pyhton lists:

# List with mixed data types
my_list = ["Hello", 123; 3.1415]