Courses · Information technology

Programming with Python: first steps

Write your first Python programs: show text, keep values in variables, do arithmetic and let the program make decisions with if and else.

Level: Beginner, no programming needed

  1. 1Your first program: print and variablesShow text on the screen with print(). Store a value in a variable and change it. Choose names Python accepts for variables.Free to read · 4 practice questions
  2. 2Numbers and arithmeticUse 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().Members · 5 practice questions
  3. 3Making decisions: if, elif and elseCompare values with ==, !=, <, >, <= and >=. Follow which branch of an if, elif and else runs. Combine conditions with and, or and not.Members · 4 practice questions

Textbook for this course

  • A Byte of Python

    Swaroop C H. Swaroop C H, via LibreTexts, updated November 2020. Read it in full in the WorldClass library.

    Licence CC-BY-SA-4.0, checked 2026-10-30.

  • Introduction to Python Programming

    Udayan Das, Aubrey Lawson, Chris Mayfield, Narges Norouzi. OpenStax, Rice University, 2024.

    Licence CC-BY-NC-SA-4.0, checked 2026-10-27. Source: openstax.org/details/books/introduction-python-programming. Its licence doesn’t allow a paid platform to show it, so WorldClass cites it.

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.