114k views
18 votes
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. numl - int (input()) num2 = ? print(numl + ?) 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 istof Helpl....docx Essay 1 (1).docx Team Cut

1 Answer

6 votes

Answer:

The full program is:

num1 = int(input())

num2 = int(input())

print(num1 + num2)

Step-by-step explanation:

Given

num1 = int(input())

num2 = ?

print(num1 + ?)

Required

Replace ? with the right codes

Line 1: The syntax is correct

Line 2: The ? should be replaced with an integer input function to get input for num2.

So, the second line would be: num2 = int(input())

Line 3: The ? should be replaced with num2 in order to calculate and print the required sum.

So, the third line would be: print(num1 + num2)

User Thariama
by
3.4k points