ENع
الدرس 02 · Basics

Numbers and strings

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

Every value in Python has a type. Use the >>> prompt as a calculator and meet the three ways to divide, then step through a five-line program, tea.py, that makes an int, a float and a string, prints them, and turns a number into text with str(). Finish with what happens when you mix text and a number without converting: a TypeError.

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

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