Add two numbers you were given · Sumar dos números que te fueron dados
Add two numbers you were given
Read two whole numbers, one per line, and print their total. For 3 and 4, print 7.
Two reads, two int(...), then one +. Forget one int and you get 34 instead of 7 — Python joined the text rather than adding the numbers.
Sumar dos números dados
Lea dos números enteros, uno por línea, e imprima su total. Para 3 y 4, imprima 7.
Dos lecturas, dos int(...), luego una +. Olvidar un int dará como resultado 34 en lugar de 7 — Python concatenará el texto en lugar de sumar los números.
Read two whole numbers, one per line, and print their total. For 3 and 4, print 7. · Lee dos números enteros, uno por línea, e imprime su total. Para 3 y 4, imprime 7.
Click Run to see the output here. · Haz clic en Ejecutar para ver la salida aquí.