Penggunaan == Python

def equal(a, b):
    if(a == b):
      return str(a) + " is equal to " + str(b) +"!"
    else:
      return str(a) + " is not equal to "+ str(b) +"."
print(equal(1, 1)) 
#Expected output: 1 is equal to 1!
print(equal(1, 2))
#Expected outpt: 1 is not equal to 2.
Thankful Toucan