for i in range(1,11): if i != 6: print i, 'squared is', i*i
Using the explicit list [1,2,3,4,5,7,8,9,10] was not as clean as the above, nor was writing two separate loops for the two parts. These answers got 8 out of 10, which is still an 'A', but isn't as good.