TechnologyThe PirateBeginner
Writing Your First Python Scripts, a free technology course on Tomo

Writing Your First Python Scripts

Build a working intuition for the world's most popular programming language. Learn how Python stores information, makes decisions, and automates repetitive tasks with clean, readable code.

Like Duolingo, but for Writing Your First Python Scripts. Tomo turns the whole topic into a game you play five minutes a day, until it actually sticks.

A short one: 12 levels across 2 sections, about 24 minutes end to end, roughly 5 days at five minutes a day. It moves through Making Python Talk and Decide and Handling Data and Automating Tasks. It starts from scratch.

12 bite-size levelsAbout 5 minutes each

Free forever · No credit card · iPhone & Android

Pip the Python, the guide who teaches the Writing Your First Python Scripts course
Writing Your First Python Scripts
with Pip the Python
12
Levels
2
Sections
5
Min/day
What you'll learn

Key ideas in Writing Your First Python Scripts

  • In Python, an equals sign binds a name to a value at that moment rather than linking two variables forever
  • Reassigning one variable does not automatically change other variables that were previously assigned its old value
  • Quotes tell Python to treat characters as text rather than a usable number
  • Whole numbers without decimals are integers, while numbers containing a decimal point are floats
  • Python treats text digits differently from mathematical numbers during calculations
  • Python's input() function always collects user input as a text string
  • Adding to an input value directly causes an error unless you convert it into a number first
  • Placing an 'f' before a string tells Python to evaluate expressions inside curly braces
  • f-strings automatically handle converting numbers into readable text inside the message
  • Python processes code top-to-bottom one statement at a time
  • Any statement before a broken line executes normally
  • Python stops execution entirely the instant it encounters an unhandled error, ignoring all subsequent lines
  • Python treats indented lines under an if statement as the body that only runs if the check succeeds
  • Unindented code following an if block runs regardless of whether the condition was True or False
  • Python does not use curly brackets or 'end' keywords to mark where an if block stops
  • Python resolves conditional checks into Boolean values: either True or False
Why not just Google it

You've tried the other tabs

Wikipedia

Thirty open tabs. Four facts you actually kept.

YouTube

You watched. You nodded. By Sunday it was gone.

ChatGPT

One answer, then back to scrolling.

Online courses

Eight weeks. You meant to finish. You didn't.

Tomo gives Writing Your First Python Scripts the Duolingo treatment: levels, streaks, and quick quizzes that test what you just learned. That game loop is what the tabs above never had, so it's the one you actually finish.

Try a question

Here's what playing it feels like

A real question from this course. Take your best guess.

Charting Python Variables and Numbers

You set coins = 10, then chest = coins, and then you change coins = 20. What is inside chest?

Get it right to open this lesson and 11 more in the app.

Course map

How to learn Writing Your First Python Scripts, step by step

Go in order. 12 short levels across 2 sections, about 24 minutes in all, five minutes a day.

  1. 1

    Making Python Talk and Decide

    • Speaking Python's Language
    • Controlling the Flow with Logic
  2. 2

    Handling Data and Automating Tasks

    • Organizing Collections of Data
    • Automating Repetition with Loops and Functions

2 sections · 4 units · 12 levels. Built to play, not to enroll.

Questions

Questions about Writing Your First Python Scripts

  1. How do I learn Writing Your First Python Scripts?

    Go in order: start with Making Python Talk and Decide, then Handling Data and Automating Tasks. On Tomo that's 12 short levels, about 24 minutes in all, played five minutes a day. Start free and play the first level in under a minute.

  2. Is there a Duolingo-style app for Writing Your First Python Scripts?

    Yes. Tomo works like Duolingo: short daily lessons, streaks and quick quizzes. Writing Your First Python Scripts is one of its free courses, and you can type any other topic to get a course of your own.

  3. Is the Writing Your First Python Scripts course free?

    Yes. Writing Your First Python Scripts is playable on Tomo's free plan, which doesn't expire. No credit card, no waitlist. Download the app and start your first lesson.

  4. How long does it take to learn Writing Your First Python Scripts?

    12 levels across 2 sections, about 24 minutes of play in total. It's built for five minutes a day, so you finish it a little at a time instead of all at once.

  5. Do I need any background to start Writing Your First Python Scripts?

    No. It's pitched at a beginner level, so it starts where you are and builds up. If you can tap a phone, you can start.

New

Tomo is in ChatGPT

Tomo is also a ChatGPT plugin: the same playable courses, built and played inside your chat.

Add Tomo to ChatGPT
How it's taught

You pick the voice

This course
The Pirate

Writing Your First Python Scripts is taught in the Pirate style: arr, learning be an adventure!. Want a different feel? In the app you can spin up the same topic in any of Tomo's teaching styles. Same facts, totally different vibe.

Start free

Start Writing Your First Python Scripts today.

Download Tomo, search Writing Your First Python Scripts, and play your first lesson in under a minute.