How to Create a List in Python


In this example, we will learn how to create a list in Python.

Source Code

my_list = ['a', 'b', 'c']
print(my_list)

Output:

['a', 'b', 'c']
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
Advertisement