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

Project 01: Python Code for Music Recommendation with Explanation

Iris Flowers Classification ML Project with Code