Python: Add Two Numbers Posted by Codingverse July 27, 2020 Get link Facebook X Pinterest Email Other Apps # This program adds two numbers num1 = 1.5 num2 = 6.3 # Add two numbers sum = num1 + num2 # Display the sum print('The sum of {0} and {1} is {2}'.format(num1, num2, sum)) OutputThe sum of 1.5 and 6.3 is 7.8 Comments
Comments
Post a Comment
For More Codes Comment In The Box