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.5
num2 = 7.3
# Addition of two numbers
sum = num1 + num2
# Display the sum
print('The sum of {0} and {1} is {2}'.format(num1, num2, sum))
Output:
The sum of 3.5 and 7.3 is 10.8