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.
Free forever · No credit card · iPhone & Android

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
You've tried the other tabs
Thirty open tabs. Four facts you actually kept.
You watched. You nodded. By Sunday it was gone.
One answer, then back to scrolling.
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.
Here's what playing it feels like
A real question from this course. Take your best guess.
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.
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
Making Python Talk and Decide
- Speaking Python's Language
- Controlling the Flow with Logic
- 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 about Writing Your First Python Scripts
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.
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.
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.
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.
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.
Tomo is in ChatGPT
Tomo is also a ChatGPT plugin: the same playable courses, built and played inside your chat.
Add Tomo to ChatGPT- What to ask
- “Make me a Tomo course on black holes.” “Turn this chat into a Tomo course.”
- What you get
- Quick questions with instant feedback, hearts and stars, ready to play in about a minute.
- Where it goes
- No sign-up to start. Connect your Tomo account and your streak carries on in the app.
You pick the voice
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.
More Technology on Tomo
Writing Code with Python
Turn plain text into working programs that calculate, automate, and solve real problems. Learn how to direct computer logic, work with collections of data, and build reusable scripts.
Python: Writing Useful Scripts
Learn how to write real, functioning Python code to automate tedious tasks and crunch everyday numbers. Build confidence step-by-step from your first variable to clean, reusable custom functions.
Python from Scratch
Learn to write real, working Python code to automate repetitive tasks, analyze information, and build your own applications. Master core syntax, data structures, and practical libraries through hands-on logic.
Python Programming for Beginners
Stop reading about code and start writing it. Build your first programs immediately and learn how to think like a developer to solve real-world problems.
Thinking in Code
Learn how to command computers and build working software from scratch. Discover the core mechanics of programming, from simple step-by-step instructions to data structures and debugging.
The Flow of Power: Basic Circuits
Stop guessing and start building. Learn to direct the invisible force of electricity to power lights, motors, and your own inventions.
Start Writing Your First Python Scripts today.
Download Tomo, search Writing Your First Python Scripts, and play your first lesson in under a minute.