Skip to content · ⁨Saltar al contenido⁩

Add two numbers you were given · ⁨Sumar dos números que te fueron dados⁩

English

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.

Español

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.

Log in or create account · ⁨Iniciar sesión o crear cuenta⁩

IGCSE, A-Level & AP