Check divisibility between two numbers in Python
Enter a: 12
Enter b: 3
a is divisible by b.
------------------------
Enter a: 4
Enter b: 12
b is divisible by a.
------------------------
Enter a: 12
Enter b: 7
a and b are not divisible.def main():
a = int(input("Enter a: "))
b = int(input("Enter b: "))
if a % b == 0:
print("a is divisible by b.")
elif b % a == 0:
print("b is divisible by a.")
else:
print("a and b are not divisible.")
if __name__ == "__main__":
main()