118k views
1 vote
Write the definition of the function add, that receives two integer parameters and returns their sum

1 Answer

4 votes

Answer:

Here is the definition of the function add that receives two integer parameters and returns their sum:

def add(x, y):

return x + y

result = add(3, 5) # result will be 8

User Zizy Archer
by
5.9k points