Write a function?

Write a function called test that receives three integers and returns true if the sum of the first two (from the left) is equal to the third one. Otherwise, it returns false.

1 Answer

  • Anonymous
    7 months ago

    def test(int1,int2,int3):

         if (int1 + int2) == int3:

              return True


              return False

Still have questions? Get your answers by asking now.