Bring your curiosity

Your first line of code,
the start of an adventure.

With An Adventure with Python, start from zero,
build real projects and grow one step at a time.

The English edition is coming soon.

YOUR NEXT CHAPTER STARTS HERE
English cover of An Adventure with Python by Mohammad Mahdi Ghaemi
Learn, build, discoverOne project, one step further
21chapters

From the first step onward

20main projects

Learn by building

90side missions

Find your own solutions

7connected parts

A clear path forward

An Adventure with Python: learn step by step by building useful projects
A taste of the projects

Games, tools, reports;
made with your code.

Every chapter gives you something to build, test and make your own.

Every chapter, a level up

Write code. Earn XP. Level up.

Start at level 1, rank H. Projects and side missions earn you XP as you advance through the book. Reach rank S and level 100 in chapter 21: the book’s Legendary Programmer.

SLevel 100
  1. HLevel 2Chapter 1
  2. GLevel 3Chapter 2
  3. FLevel 10Chapter 4
  4. ELevel 35Chapter 9
  5. DLevel 60Chapter 12
  6. CLevel 75Chapter 15
  7. BLevel 80Chapter 16
  8. ALevel 99Chapter 20
  9. SLevel 100Chapter 21
20 projects and 90 side missions power your journeyEach side mission 20 XP
Your adventure map

Pack your skills;
the path is here.

Seven connected parts take you from Python basics to a complete project and your first steps with data.

Learn a concept.
Use it in a mission.

Check availability
01Part 1 · Chapters 1–4Start your adventure!

Set up your environment, write your first program, solve problems and use variables, conditions and while loops.

  1. Chapter 1

    Your first step: set up your development environment

    Project: Build a digital business card
  2. Chapter 2

    Become a code detective

    Project: Hunt bugs in cursed code
  3. Chapter 3

    Magic boxes: the magic calculator

    Project: Build a magic calculator
  4. Chapter 4

    Logic and conditions: build a number guessing game

    Project: The great number guessing game
02Part 2 · Chapters 5–9Manage your adventurer’s backpack

Explore lists, slicing, tuples, sorting, dictionaries, functions and libraries.

  1. Chapter 5

    The magic backpack: manage your loot

    Project: Manage your adventurer’s backpack
  2. Chapter 6

    Backpack secrets: the adventurers’ hall of fame

    Project: The adventurers’ hall of fame
  3. Chapter 7

    The magic book: build a word translator

    Project: Build a word translator
  4. Chapter 8

    Create your own spells: the art of functions

    Project: Clean up cursed code
  5. Chapter 9

    A protective spell: generating passwords

    Project: Build a password generator
03Part 3 · Chapters 10–12Enter the fourth dimension

Process text, work with files and JSON, handle errors and discover object-oriented programming.

  1. Chapter 10

    Decode ancient scrolls: a text analyzer

    Project: Analyze an ancient scroll
  2. Chapter 11

    An anti-forgetting spell: working with files

    Project: Create a bestiary
  3. Chapter 12

    Bring code to life with objects

    Project: Build a wizard shop
04Part 4 · Chapters 13–15Rituals of the senior wizard

Work with modules, dates and times, enumerate, zip, list comprehensions and lambda expressions.

  1. Chapter 13

    The separation spell: a place for every piece of code

    Project: Organize your wizard shop
  2. Chapter 14

    The magic book of time

    Project: Build a deadline reminder
  3. Chapter 15

    The Python tribe: the art of Pythonic code

    Project: List alchemy
05Part 5 · Chapter 16The final battle: your big project

Combine what you have learned in the complete adventurer’s mission journal project.

  1. Chapter 16

    The final battle: build your mission journal

    Project: The adventurer’s mission journal
06Part 6 · Chapters 17–20Enter the hall of seers

Take your first steps with data: pip and venv, NumPy, Pandas and Matplotlib.

  1. Chapter 17

    The summoning gate and magic laboratory

    Project: Create a magic noticeboard
  2. Chapter 18

    NumPy spells: fast numerical computing

    Project: The million-adventurer challenge
  3. Chapter 19

    The great Pandas library: tabular data

    Project: Analyze the scoreboard
  4. Chapter 20

    Magic charts with Matplotlib

    Project: The guild’s visual report
07Part 7 · Chapter 21The adventure continues…

Explore specialist paths and choose your next step in learning Python.

  1. Chapter 21

    Endless horizons: your next treasure maps

    Choose your next path; no new main project
Take a look inside

Meet your next adventure companion.

Explore the English edition’s real table of contents, from your first program to data projects and the road ahead.

English table of contents pages for An Adventure with Python Zoom in
1 of 5 · Chapters 1–4
An Adventure with Python

An Adventure with Python:
a project-based start from zero

Written by Mohammad Mahdi Ghaemi, this book introduces programming from the beginning. Across 7 parts and 21 chapters, you progress from setting up your environment to files, objects and basic data tools. The Persian edition is published by Kian University Press; the English edition is coming soon.

  • Clear explanations, practical examples and project code
  • Side missions with solutions
  • A complete project to bring your skills together
AuthorMohammad Mahdi GhaemiPersian publisherKian University Press
Read the Persian sample (PDF) Explore the book’s code on GitHub
Three copies of An Adventure with Python beside a cup of coffee
From the book’s preface
“In this book, we are fellow travelers.”

Discover new ideas, build something with them and grow more independent with every experiment.

Mohammad Mahdi Ghaemi Author of An Adventure with Python
Before you begin

You might be wondering.

Is this book suitable for complete beginners?

Yes. It starts with setting up your environment, running your first line of code and understanding what programming means. Each chapter builds on the previous ones.

Can I start on a phone or tablet?

You can start with Google Colab in your browser, as explained in the book. A computer is more comfortable for longer coding sessions and projects.

Does the book include exercises and projects?

Yes: 20 main projects and 90 side missions. Read the example, write and run it yourself, then rebuild it without looking. Solutions help you compare approaches.

Will I learn data analysis and AI?

Part 6 introduces NumPy, Pandas and Matplotlib for working with data and charts. It provides a foundation for further study, rather than a complete or advanced AI course.

When can I buy the English edition?

The English edition has not been published yet. It is coming soon; a release date and purchase links will be added here when available. The Persian edition is available from Kian University Press and Fidibo.

English edition

Coming soon.

The English edition has not been published yet. Release details and purchase links will appear here when it is available.

See the Persian edition

A closer look at the English contents

Enlarged English table of contents preview

On a phone, pinch the image to zoom in.