download: divisible.py
#!/usr/bin/python2.3

def divisible(a,b):
	if a % b == 0:
		print "%d es divisible por %d" %(a,b)
	else:
		print "%d no es divisible por %d" %(a,b)

divisible(2,8)
divisible(8,2)
divisible(100,10)
# divisible(2,0) # Produce ZeroDivisionError

Copyleft 2006 Juanjo Conti