list pyton 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 lists in python
blah = [uchoose,etc.]
Example 3: list in python
#list is data structure
#used to store different types of data at same place
list = ['this is str', 12, 12.2, True]
Example 4: python dlist
#this is how to create a list:
#I named it mylist, but you can name it whatever you like
myList = [1,2,3,4,5]
print(myList[0]) # this will print the first element of the list
print(myList[1]) #this will print the second element of the list
print(myList[2])#and so on
print(myList[3])
print(myList[4])