CSC111 surprising behavior
--D. Thiebaut 09:58, 1 November 2011 (EDT)
# What is the surprising behavior
# of this program?
def f1( L ):
L.sort()
print( "smallest element of L = ", L[0] )
print( "largest element of L = ", L[-1] )
def main():
L = [ 1, 10, 3, 0, -10, 100, 2 ]
print( "L = ", L )
f1( L )
print( "L = ", L )
main()