python two number common division

Solutions on MaxInterview for python two number common division by the best coders in the world

showing results for - "python two number common division"
Monica
23 Mar 2018
1import math
2
3def notRelprime(a,b):
4    if a != 1 and b != 1:
5        if a%1==a%2==0 and b%1==b%2==0 or b%a == 0 or a%b == 0:
6            print("true")
7            return True
8        else:
9            print("false")
10            return False
11    else:
12        print("false")
13        return False
14notRelprime(3,7)