ENع
الدرس 04 · Basics

Input and output

لم يُترجم بعد؛ يُعرض باللغة الإنجليزية

A program talks to you through the terminal: print() sends output out, input() brings what you type back in. Step through a five-line program, age.py, that asks your name and age, turns the age into a number with int(), and prints a greeting and an f-string. Then see the classic mistake: forgetting that input() always gives back a string.

12 دقيقة9 خطوات5 أسئلةBeginner
شكل 4 · تفاعلي
جارٍ تحميل الرسم…
أو ← →

اختبار يتاح بعد الخطوة الأخيرة.