Respuesta :
Answer:
The solution code is written in Python 3:
- num1 = int(input("Enter first number: "))
- num2 = int(input("Enter second number: "))
- print(num1 + num2)
Explanation:
Firstly, we use input function to prompt user input first and second number (Line 1 -2). We can include the prompt message as the argument of input function. Besides, we also convert the input to integer type using int() function. By default all the input are string.
At last, use print function to display the result of num 1 + num2 (Line 3)
The program written in python 3 calculates the sum of two integers provided by the user and displays the result. The program written in python 3 is as follows :
num1 = int(input())
# prompts user to provide a number which is converted into an integer and assigned to the variable num1
num2 = int(input())
# prompts user to provide a number which is converted into an integer and assigned to the variable num2
print(num1 + num2)
#calculates and displays the result of the sum
Learn more :https://brainly.com/question/14942732