Addition of Two Numbers in Python
num1=int(input("Enter First Number: ")) num2=int(input("Enter Second Number: ")) addition=(num1+num2) print("Addition of Two Numbers:",addition)
Output:
Addition of Two Numbers in Python using Function:
def addition(a,b): sum=a+b; return sum; num1=int(input("Enter First Number: ")) num2=int(input("Enter Second Number: ")) print("The Addition of Two Numbers: ",addition(num1,num2))
Output: