Sum of numbers

Report a typo

Write a program that takes two integer numbers x and y and then prints the sum of these numbers.

Variables x and y are already defined for you. Use the sum() function, please.

Tip: sum() function takes an iterable as an argument, you have noticed that it requires numbers to be in parentheses, haven't you?

Sample Input 1:

8
11

Sample Output 1:

19

Sample Input 2:

935
42

Sample Output 2:

977
Write a program in Python 3
x = int(input())
y = int(input())
# the variables `x` and `y` are defined, so just print their sum
___

Create a free account to access the full topic