The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



Thread: Python
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 04-16-2002
Furtoes00 Furtoes00 is offline
Registered User
 

Join Date: Oct 2001
Posts: 18
That does make sense; here is the modified code:

Code:
for i in range(2,10):
	print
	print i,"-",
	for j in range(2,i):
		if (i % j) == 0:
			print j,
		if j == i + 1:
			print "is a Prime"
However, that does not work, either!!
Reply With Quote