defenition systax for python list code example
Example 1: creating a list in python
myList = [value,value,value] #note that you can use any amount of value
#you don not have to use value
Example 2: how to make a list in python
# empty list
my_list = []
# list of integers
my_list = [1, 2, 3]
# list with mixed data types
my_list = [1, "Hello", 3.4]