Skip to main content
← All courses
🐍

Python Basics 🐍

Python

Learn Python from scratch β€” read code, return values, do a little math, make choices, loop, and work with text. Real Python runs right in your browser, no install needed. One tiny, friendly step at a time.

Your progress

0/14 complete

Start β†’ Read Some Python πŸ‘€
  1. 1

    Read Some Python πŸ‘€ Quiz

    Before you write Python, learn to read it.

    ⚑ 10
  2. 2

    Return a Word ✏️

    Your first Python β€” make a function hand back a word.

    ⚑ 15
  3. 3

    Use the Input πŸ“₯

    A function can take a value in and hand it back.

    ⚑ 20
  4. 4

    Say Hello with an f-string πŸ‘‹

    Drop a value right into a sentence.

    ⚑ 25
  5. 5

    A Little Math βœ–οΈ

    Multiply two numbers together.

    ⚑ 25
  6. 6

    What's Left Over? βž—

    Use % to find the remainder.

    ⚑ 25
  7. 7

    Making Choices πŸ”€ Quiz

    How Python picks between two paths.

    ⚑ 10
  8. 8

    Red Light, Green Light 🚦

    Write your first if/else: stop or go?

    ⚑ 30
  9. 9

    A Third Choice with elif πŸ”’

    Add a middle option with elif.

    ⚑ 30
  10. 10

    What's a Loop? πŸ” Quiz

    See how Python repeats things before you write one.

    ⚑ 10
  11. 11

    Add Them Up with a Loop πŸ”

    Write your first for loop.

    ⚑ 35
  12. 12

    SHOUT in Capitals πŸ”Š

    Use .upper() to make text loud.

    ⚑ 30
  13. 13

    Tidy Up Text 🧹

    Trim spaces, then chain methods together.

    ⚑ 35
  14. 14

    Default Arguments βš™οΈ

    Give a parameter a sensible default.

    ⚑ 40