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))    
            Asked
            
        
        
            Active
            
        
            Viewed 18 times
        
    0
            
            
         
    
    
        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
