''' Support your understanding of lists list building ''' # if lists don't make sense, take a look at the readings/info sheet # get some lists print() # create and add to values values = [ ] # start out with an empty list so we can build it up # we can only append() one thing at a time!! values.append( "u" ) # puts "u" at position 0 # append is a method function belonging to lists values.append( "v" ) # puts "v" at position 1 # list_name.append( something ) adds something to the end of the list values.append( "a" ) # "a"` 2 values.append( "!" ) # "!" 3 values.append( " " ) # and so on values.append( "u" ) values.append( "v" ) values.append( "a" ) values.append( "!!!" ) # we can take things out using list_name.remove( item ) or list_name.pop() will automatically take # the first item ( list_name[ 0 ] ) out of the list print( "values =", values ) input( "enter when ready " ) # create and add to ints ints = [] for i in range( 0, 10 ) : ints.append( i ) print( "ints =", ints )