python list of strings 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 of lists python

listOfLists = [[1,2,3],['hello','world'],[True,False,None]]

Example 4: python lists

thislist = ["apple", "banana", "cherry"]
print(thislist[1])

Example 5: list inside a list in python

# it appends a list into a list
list1 = [1,2,3,4,5]
list1.append([6,7])
# ouput = [1, 2, 3, 4, 5, [6, 7]]