for i in range( len( aList ) ): print "%9d %7d" % ( i, aList[ i ] )
print "nModifying a list value..." print "Value of aList before modification:", aList aList[ 0 ] = -100 aList[ -3 ] = 19 print "Value of aList after modification:", aList
Related Scripts with Example Source Code in same category :