0
num=int(input("Enter a number: \n"))

def divisible(n):
    for i in range(2,n):
        if(n%i==0):
            print(i)
            

print(divisible(num))    
Nick
  • 138,499
  • 22
  • 57
  • 95
  • The `print()` statement excepts a value to be returned to it for it to print something. When a function doesn't return something explicitly, it returns ```None``` by default. – Voiceroy Sep 10 '22 at 08:48

0 Answers0