Get two numbers from the user and print the sum of two numbers.
Input:
Enter first number: 5
Enter second number: 6
Output:
result = 11
Implementation:
Input:
Enter first number: 5
Enter second number: 6
Output:
result = 11
Implementation:
# python program to add two numbers firstNumber = int(raw_input("Enter first number:")) secondNumber = int(raw_input("Enter second number:")) result = firstNumber + secondNumber print "result = %d"%result