Read two numbers from user input. Then, print the sum of those numbers. Hint -- Copy/paste the following code, then just type code where the questions marks are to finish the code. num1 = int(input()) num2 = ? print(num1 + ?) Note: Our system automatically runs your program several times, trying different input values each time to ensure your program works for any values. Notes on how to solve this. See How to Use zyBooks for info on how our automated program grader works

Respuesta :

Answer:

The solution code is written in Python 3:

  1. num1 = int(input("Enter first number: "))  
  2. num2 = int(input("Enter second number: "))
  3. 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)

fichoh

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

ACCESS MORE