Kit wrote:
Oops...print [x^2 for x in range (1,11) if x % 2 == 0]print [x^2 for x in range (1,10) if x % 2 == 0]
The start is inclusive and the end is exclusive. This is a general rule in Python. In fact, there's only one exception that I know of: randint(a, b) in the 'random' module. -- http://mail.python.org/mailman/listinfo/python-list