Problemas
What is the output of the following snippet if the user enters two lines containing 2 and 4 respectively? x=int(input()) y=int(input()) print (x+y) 4 24 2 x 6
Solución
Susanaprofessionell · Tutor durante 6 años
Verificación de expertos
4.5 (266 votos)
Responder
The output of the given snippet will be 6. The snippet takes two inputs from the user, converts them to integers using the `int()` function, and then adds them together. Finally, it prints the sum. In this case, the inputs are 2 and 4, so the sum is 6.
Haz clic para calificar: