# Create a list
new_list = []
# Add items to the list
item1 = "string1"
item2 = "string2"
new_list.append(item1)
new_list.append(item2)
# Access list items
print(new_list[0])
print(new_list[1])
my_list = ['p', 'r', 'o', 'b', 'e']
# first item
print(my_list[0]) # p
# third item
print(my_list[2]) # o
# fifth item
print(my_list[4]) # e
# Nested List
n_list = ["Happy", [2, 0, 1, 5]]
# Nested indexing
print(n_list[0][1])
print(n_list[1][3])
# Error! Only integer can be used for indexing
print(my_list[4.0])
# create lists
x = [i for i in range(5)] # create list
print(x)
y = [[i] for i in range(5)] # create nested list
print(y)
z = [[x, y] for x,y in zip(range(5), range(5,10))] # create nested list
print(z)