Answers for "use of in python"

2

use of == 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.
Posted by: Guest on July-29-2021

Python Answers by Framework

Browse Popular Code Answers by Language