1# Create a list
2new_list = []
3
4# Add items to the list
5item1 = "string1"
6item2 = "string2"
7
8new_list.append(item1)
9new_list.append(item2)
10
11# Access list items
12print(new_list[0])
13print(new_list[1])
1myList = [value,value,value] #note that you can use any amount of value
2#you don not have to use value
1# example of list in python
2
3myList = [9, 'hello', 2, 'python']
4
5print(myList[0]) # output --> 9
6print(myList[-3]) # output --> hello
7print(myList[:3]) # output --> [9, 'hello', 2]
8print(myList) # output --> [9, 'hello', 2, 'python']
9