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

Popular posts from this blog

Simple Python Program Code for Snake Game

Iris Flowers Classification ML Project with Code

Linear Regression Model for House Price Prediction in Python