Adding Two Numbers in Python:
In this post let us see how we add two numbers using Python,
# Store input numbers
num1 = float(input('Enter first number: '))
num2 = float(input('Enter second number: '))
# Add two numbers
sum = num1 + num2
# Display the sum
print(f"Sum of {num1} and {num2} is {sum}")
Output
Enter first number: 8
Enter second number: 5
Sum of 8.0 and 5.0 is 13.0