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
Relevance
- Anonymous6 months ago
def test(int1,int2,int3):
if (int1 + int2) == int3:
return True
else:
return False
Still have questions? Get answers by asking now.