|So what is n and x in the first iteration?  Sorry.  I'm trying.

When n == 2, the inner loop executes 0 times (the length of range(2,n)) and 
then falls thru to the else clause, printing the correct answer. 



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to