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

Popular posts from this blog

program to find the multiples of a number ( the divisor) out of given five numbers.

program that reads two numbers and an arithmetic operator and displays the computed result.

program to display a menu for calculating area of a circle or perimeter of a circle.