human
Find all factors of a natural number | Set 1 | method to print the divisors.
Driver method"
How can the above be solved in Python?

=====
Can you provide a code to find all factors of a natural number and the other steps required?
assistant
#Here is code to find all factors of a natural number and the other steps required.
 def printDivisors ( n ) :
	i = 1
	while i <= n :
		if ( n % i == 0 ) :
			print i ,
		i = i + 1
print " The ▁ divisors ▁ of ▁ 100 ▁ are : ▁ "
printDivisors ( 100 )