Explore IDNLearn.com to discover insightful answers from experts and enthusiasts alike. Ask anything and receive immediate, well-informed answers from our dedicated community of experts.

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.

Sagot :

The code that read two numbers from user input, then, print the sum of those numbers are as follows:

x = int(input("write a number: "))

y = int(input("write another number: "))

print(x + y)

Code explanation

  • The first line of code ask the user for a number input. The integer input is stored in a variable x.
  • The second line of code ask the user for another number input . The integer input is stored in a variable y.
  • Finally, we print the sum of the user's input.

learn more on python code here: https://brainly.com/question/15183327?referrer=searchResults

View image Vintechnology
View image Vintechnology