Wrong output

Describe your bug

In the third output it should be “N is divisible by only A” but it is showing “N is divisible by A and B”


Additional info

Yeah, so you have done something wrong in your code. Try to debug it.


If you’re using python3 to solve this this problem then cross verify it with my code as I am getting the desired output.

Hope It Helps !

1 Like

Add “and” operator in your if else statement