Add two numbers you were given · اجمع عددين مُعطيين
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.
أضف رقمين مُعطَين لك
اقرأ رقمين صحيحين، واحد لكل سطر، وطبع مجموعهما. للرقمين 3 و 4، اطبع 7.
قراءتان، اثنتان int(...)، ثم واحدة +. نسيان int واحد سيمنحك 34 بدلاً من 7 — بايثون ملأت النص بدلاً من جمع الأرقام.
Read two whole numbers, one per line, and print their total. For 3 and 4, print 7. · اقرأ رقمين صحيحين، واحد لكل سطر، وطبع مجموعهما. للرقمين 3 و 4، اطبع 7.
Click Run to see the output here. · اضغط تشغيل لرؤية المخرجات هنا.