find sum of 2 numbers in array using python code example
Example 1: how to return the sum of two numbers python
def add(a, b):
return a + b
Example 2: find sum of 2 numbers in array using python
a = int(input("Enter first number:"))
b = int(input("Enter second number:"))
sum = a+b
print(sum)