Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuition

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labs

Reference

GlossaryBlogDiscoveries
Formulas › Class 8 › Computer Science

Introduction to Python: formulas

Class 8 Computer Science, CBSE and ICSE. 6 formulas, each with what it means.

Practise with 10 questionsLearn it with a tutor
  1. print("Hello")

    Show text.

  2. x = input("Name? ")

    Read text from the keyboard; int() turns it into a number.

  3. + − * / // % **

    Add, subtract, multiply, divide, whole-number divide, remainder, power.

  4. if x > 0: … elif …: … else: …

    Choose; indent the block.

  5. for i in range(5):

    Repeat 5 times, i = 0 to 4.

  6. while x < 10:

    Repeat while a test is true.

← Web pages with HTMLAll sheets