Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Pavbro89/sum-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

sum-

Function to calculate the sum of two numbers

def calculate_sum(a, b): return a + b

Ask the user for two numbers

num1 = float(input("Enter the first number: ")) num2 = float(input("Enter the second number: "))

Calculate the sum

sum_result = calculate_sum(num1, num2)

Print the result

print(f"The sum of {num1} and {num2} is {sum_result}.")

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published