how to add two numbers in python

a = int(input("Enter first number:"))
b = int(input("Enter second number:"))
sum = a+b

Here is what the above code is Doing:
1. It’s asking the user to input two numbers.
2. It’s storing those numbers in two variables, a and b.
3. It’s adding those two numbers and storing the result in a variable called sum.
4. It’s printing the value of sum.