Addition of Two numbers in Python
num1 = 5
num2 = 7
sum = num1 + num2
print("The sum of", num1, "and", num2, "is", sum)
This program adds two numbers (num1 and num2) and stores the result in a variable called sum. The print statement is used to display the result to the console.
Comments
Post a Comment