Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Chemistry with Python for Beginners: Moles to Reactions
New
6 students

Chemistry with Python for Beginners: Moles to Reactions

Learn general chemistry by coding: moles, stoichiometry, balancing equations, gas laws, molarity and pH in Jupyter
Last updated 11/2026
English
English

What you'll learn

  • Convert between grams, moles and molecules, and find the molar mass of any chemical formula
  • Calculate mass percent and work out empirical and molecular formulas from percent composition
  • Balance chemical equations and predict yields, limiting reagents and the heat a fuel releases
  • Use the ideal gas law, Charles's law and Boyle's law to predict how gases change
  • Calculate molarity, dilutions, pH and freezing point depression for real solutions
  • Solve chemistry problems in Python and Jupyter, including plain-English questions, and build a final project

Course content

5 sections • 20 lectures • 1h 40m total length
  • One Teaspoon of Water: How Many Molecules Are Inside?4:56

    A teaspoon holds about 5 g of water. Divide by water's molar mass, 18.015 g/mol, to get 0.2775 mol, then multiply by Avogadro's number, 6.022 × 10²³: about 1.67 × 10²³ molecules. The same 5 g of sugar holds only 8.80 × 10²¹ molecules, about 19 times fewer.

    In this lecture:

    • What a water molecule looks like: one oxygen atom, two hydrogen atoms
    • Grams to moles: divide by the molar mass
    • Moles to molecules: multiply by Avogadro's number
    • Why a scale can count molecules you cannot see
  • Install the Free Chemistry App (Windows and Linux)5:23

    On the Chemistry page, under Get it, download the Windows .zip or the Linux .tar.gz. Extract it and run the app; on Windows, if SmartScreen appears, click More info, then Run anyway. Then search 'molar mass' and press Compute (water: 18.015 g/mol), or count the molecules in a 5 g teaspoon of water: 1.67 × 10²³.

    In this lecture:

    • Find the Desktop app downloads in the Get it section
    • Windows: Extract All, open the folder, run the .exe, More info then Run anyway
    • Linux: Extract Here, or curl, tar xzf and ./ in a terminal
    • PowerShell: Invoke-WebRequest, Expand-Archive, start
  • Install Python and the Chemistry Engine (pip, Jupyter, Colab)4:53

    Open a terminal, check python --version (3.10 or newer), run pip install chemistry-ai999x, then pip install jupyterlab matplotlib and jupyter lab (or use Google Colab with %pip install chemistry-ai999x). Import it and ask in plain English: caffeine, C8H10N4O2, has a molar mass of 194.194 g/mol; water is 18.015 g/mol and table salt 58.443 g/mol.

    In this lecture:

    • Open a terminal on Windows (PowerShell) or Linux
    • Check python --version: 3.10 or newer
    • Install the chemistry engine with one pip line and check the import
    • Install JupyterLab and matplotlib, or use Google Colab with no install

Requirements

  • No chemistry background needed: every idea is explained from scratch with pictures
  • Basic school math (multiplying, dividing, using a calculator)
  • A Windows or Linux computer for the free desktop app; the Python parts also run in Google Colab in any web browser
  • No Python experience required: every line of code is shown and explained

Description

This course contains the use of artificial intelligence.

How many molecules are in one teaspoon of water? About 1.67 x 10^23. Why is water 88.8% oxygen by weight when it has two hydrogen atoms for every oxygen? Why does burning 1 kg of propane put 2.99 kg of CO2 into the air? In this free beginner chemistry course you will learn to answer questions like these yourself, with a clear picture, a simple formula and a few lines of Python in Jupyter.

Chemistry with Python for Beginners teaches the core of general chemistry the way it finally makes sense. Every lecture starts with an everyday question and a real number. You see the idea drawn and animated step by step, you watch the free AI999X Chemistry engine solve it live in its desktop app, and then you solve it in a Jupyter notebook, including questions typed in plain English.

What you will learn

  • Atoms and moles: molar mass, converting grams to moles to molecules (Avogadro's number), isotopes and average atomic mass, mass percent, and finding empirical and molecular formulas
  • Chemical reactions: balancing chemical equations, stoichiometry, theoretical and percent yield, limiting reagents, and the heat released when fuels burn
  • Gases: the ideal gas law (PV = nRT), Charles's law and Boyle's law with balloons, freezers and scuba bubbles
  • Solutions and acids: molarity, dilution, the pH scale, and why salt melts ice (freezing point depression)
  • Chemistry with Python: solving every problem in Jupyter or Google Colab, sweeping values, drawing charts and asking questions in plain English

What you will build

The course ends with a final project in one Jupyter notebook: you plan a baking soda volcano from start to finish. You balance the reaction, find which ingredient runs out first, turn grams of CO2 into moles, and use the ideal gas law to predict the 2.04 liters of foam. Along the way every lecture gives you a short notebook you can keep and reuse.

How the course works

There are 20 short lectures of about 4 minutes each, in five sections: Start Here, Atoms and Moles, Reactions and Energy, Gases, and Solutions, Acids and Final Project. Lectures 2 and 3 show every install step on screen. The free AI999X Chemistry engine comes two ways: a desktop app for Windows and Linux with 119 calculations, live scenes and charts, and a Python package (pip install chemistry-ai999x) for your notebooks. Both run fully offline, and the Python part also runs in Google Colab in your browser. Every number in the course is computed by the engine, so what you see on screen is exactly what you get on your own computer.

Who this course is for

  • Complete beginners who want chemistry to finally click, without a heavy textbook
  • High school and first-year college students learning general chemistry, stoichiometry, gas laws and solutions
  • Python beginners who want practical projects with real science and real numbers
  • Teachers and parents looking for visual explanations and ready-to-use Jupyter notebooks

Frequently asked questions

Is the course free? Yes. The course is free, and the free AI999X Chemistry engine (the desktop app and the Python package) is free too.

Do I need chemistry or Python experience? No. Every idea is explained from scratch with pictures, and every line of code is shown and explained. Basic school math (multiplying, dividing, using a calculator) is enough.

Does it work offline? Yes. Both the desktop app and the Python package compute every answer on your own computer, with no internet connection needed after the install.

Which computers does it work on? The desktop app runs on Windows and Linux. The Python notebooks run on Windows and Linux with Jupyter, or in Google Colab in any web browser with nothing to install.

How long is the course? About 1 hour 45 minutes of video in 20 short lectures, plus a downloadable Jupyter notebook for every lecture.

If you have ever wondered what is really inside a glass of water, enroll now and count the molecules in a teaspoon in lecture 1.

Who this course is for:

  • Complete beginners curious about atoms, molecules and chemical reactions
  • High school and first-year college students learning general chemistry and stoichiometry
  • Python beginners who want practical science projects with real numbers
  • Teachers and parents looking for visual chemistry explanations and ready-to-use Jupyter notebooks