Python Program:

- To Create a function to add 2 numbers

Example:

User Input: 2,3

Output: 5

def add(n1 ,n2) :
  return n1+n2

print("Enter two numbers : ", end="")
n1=int(input())
n2=int(input())
print("Sum : ",add(n1,n2))

Output:

  Enter two numbers : 7
  5
  Sum : 12
Program
basic
//function to add 2 numbers
def add(n1 ,n2) :
  return n1+n2  # use add(+) operator

For devision (/), subtraction (-), multiplication (*), you can use their respective operators

Concept

Coming Soon !

Quick
Tutorial

Quote

Learn from yesterday, live for today, hope for tomorrow. The important thing is not to stop questioning.