# # Survey 3, Question 8 # import sys def find_smallest(data): if data == []: print "find_smallest must be provided with a non-empty list" sys.exit() smallest = data[0] for i in range(1, len(data)): if data[i] < smallest: smallest = data[i] return smallest