Excercise 1
Problem Statement: Create a calculator which takes the input of two numbers and returns their sum.
Example: Enter the number 1: 23.4
Enter the number 2: 31
The sum is 54.4.
Solution :
num1 = input(“Enter the number 1: “)
num2 = input(“Enter the number 2: “)
sum = float(num1) + float(num2)
print(“The sum is “, sum)