''' Support your understanding of lists list creation ''' # get some lists print() s = "we are in it together" # List Initializations # Lists have brackets [] values = [ ] # Empty List stuff = [ 'abc', 1112, 2.71, ] # Lists can have different types # of elements inside! digits = [ 3, 1, 4, 1, 5, 9, 2, 6 ] # orrr the same type of element words = s.split() # ['we','are','in','it','together'] # print them out print( "values =", values ) print() print( "stuff =", stuff ) print() print( "digits =", digits ) print() print( "words =", words ) print() # Initialize an empty list, list of values, list using .split() # s = 'hi there this is a list' # list1 = [] # Used when we use list accumulators! # list1 = ['hi','there','this','is','a','list'] # list1 = s.split() - remember .split() hands back a list! # list is a type in python and it has brackets anytime # you print it out unless we manipulate the output somehow # but more on that wayy later.