''' Purpose: introduce numeric lists ''' # get a list of numbers reply = input( 'Enter a list of numbers: ' ) slist = reply.split() print() print( 'reply =', reply ) print( 'slist =', slist ) print() #### convert numeric text into numbers one by one # first set up a holder of elements nlist = [] # initialize holder to prepare for adding elements # now get conversions of the elements of slist one-by-one for s in slist : # get numeric equivalent of s nbr = int( s ) # add the equivalent to the numeric list nlist.append( nbr ) # print the updated list print( nlist )