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
1#this is how to create a list:
2#I named it mylist, but you can name it whatever you like
3
4myList = [1,2,3,4,5]
5print(myList[0]) # this will print the first element of the list
6print(myList[1]) #this will print the second element of the list
7print(myList[2])#and so on
8print(myList[3])
9print(myList[4])