To find the sum of two numbers in python programming
# This program adds two numbers
value1 = 14.0
value2 = 56.60
# Add two numbers
result = float(value1) + float(value2)
# Display the sum
print('The sum of {0} and {1} is {2}'.format(value1, value2, result))
Output:
The sum of 14.0 and 56.6 is 70.6
Comments
Post a Comment