nested for loops

John Salerno johnjsal at NOSPAMgmail.com
Tue Mar 21 16:54:21 EST 2006


Can someone tell me why 'n' in this example isn't 2?

 >>> for n in range(2, 10):
	for x in range(2, n):
		print 'x =', x, 'n =', n

		
x = 2 n = 3



More information about the Python-list mailing list