الانتقال إلى المحتوى

Night 9: Roll the dice

← 30 ليالٍ للبرمجة · اللغة: Python الكود الوهمي
English

Tonight: roll the dice

  • Games need surprises. Tonight your pet rolls a dice.
  • You will learn one thing: random numbers with RAND.

Words for tonight

Word Meaning
random you cannot know it before; it can be different each time
RAND the 9618 function that gives a random number
INT keep only the whole number part: INT(3.72) is 3

ورقة عمل

تسجيل الدخول أو إنشاء حساب

IGCSE, A-Level & AP