HS Banner
Back
Add Two Numbers With Python

Author: Admin 01/01/2022
Language: Python
Views: 73
Tags: python


Description:

Below is a simple Python program to add two numbers and print the output.

Article:

# Python3 program to add two numbers
  
num1 = 15
num2 = 12
  
# Adding the two nums
sum = num1 + num2
  
# printing values
print("Sum of {0} and {1} is {2}" .format(num1, num2, sum))


Back
Comments
Add Comment
There are no comments yet.