Skip to content · ⁨الانتقال إلى المحتوى⁩

Ask for two things · ⁨اطلب شيئين⁩

English

Ask for two things

Read a colour, then an animal. Print them on one line with a space between: for red and fox, print "red fox".

Each input() reads ONE line, so two things need two calls — and each needs its own variable, or the second overwrites the first.

العربية

اطلب شيئين

اقرأ لوناً، ثم حيواناً. اطبعهما في سطر واحد بفراغ بينهما: بالنسبة للأحمر والثعلب، اطبع "red fox".

كل input() يقرأ سطرًا واحدًا ONE line، لذا شيئين يحتاجان استدعاءين — وكل منهما يحتاج متغير خاص به، وإلا سيغطي الثاني الأول.

Log in or create account · ⁨تسجيل الدخول أو إنشاء حساب⁩

IGCSE, A-Level & AP