A Program to Add Two Numbers
In this example, we are giving a program to add two numbers.
Program to add two numbers:
num1 = 3.5num2 = 7.3# Addition of two numberssum = num1 + num2# Display the sumprint('The sum of {0} and {1} is {2}'.format(num1, num2, sum))
Output:
The sum of 3.5 and 7.3 is 10.8