Programming with Python: first steps · Lesson 2 of 3

Numbers and arithmetic

Today you will

  • Use Python's arithmetic operators, including // and %.
  • Predict the order Python works a sum out in.
  • Turn typed text into a number with int() and float().

Before you start: print() and variables, from the first lesson.

Opening your exercise book…

Practice

Marked as you go. Get 80% right to complete the lesson.

Getting your desk ready…

Build status · Flash Infinity AI™ is a trademark of AI-Flash Inc.. WorldClass is not affiliated with, approved or accredited by any exam board, curriculum provider or university unless a page says so.