Add Two Numbers in Python Irawen March 02, 2019 Python 1 comment #This program adds two numbers num1 = 1.5num2 = 6.3# Add two numberssum = float(num1) + float(num2)# Display the sumprint('The sum of {0} and {1} is {2}'.format(num1, num2, sum)) Output: The sum of 1.5 and 6.3 is 7.8 Share This: Facebook Twitter Google+ Stumble Whatsapp Email ThisBlogThis!Share to TwitterShare to Facebook
ReplyDeletenice article for beginners.thank you.
javacodegeeks
welookups python