# to create a list
# with square brackets

# empty list
a = []

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

s = ['hello', 'world', 'python']
print(len(s))

# len()  ->  get the length of a list, get how many items there in the list
# parameter
print(len(a))

# list with mixed datatypes
my_list = [1, "Hello", 3.4, 23,324,24,2,34,234,23412,34,234,324,23,'asd','asdf',4356,23]
print(len(my_list))

n = len(my_list)
print(n)


# nested list
my_list_2 = ["mouse", [8, 4, 6], ['a']]
print(my_list_2)
print(my_list_2[0])
print(my_list_2[1])
print(my_list_2[1][0],my_list_2[1][1],my_list_2[1][2])

#a = [1, 2, 3, 4, 5]
print(a[-1])

# 0 = -0
print(a[-2])




