# File Lists03.py
# Rev 2/4/00
# Copyright 2000, R. G. Baldwin
# Illustrates mutating lists
#
#-------------------------------
print "Create and print a list"
listA = [3.14,59,"A string",
           1024]
print listA

print "Modify the list"
listA[2] = "New string"
print "Print the modified list"
print listA

print "Modify the list again"
listA[3] = listA[3] * 2
print "Print the modified list"
print listA

print "Modify the list again"
listA[2] = 0.99999
print "Print the modified list"
print listA

Figure 11