n = int(input('Enter a value')) i=1 while i<=n: if n%i==0: print(i) i = i+1
Father of Python Language
Makeitsimple.co.in