Chapter 1: Get Started
Welcome to Mojo, a systems language for the AI era.
This tutorial offers a quick tour of Mojo language fundamentals by showing you how to build a simple application. You'll get a taste of Mojo's syntax and enough familiarity to read and write basic Mojo code.
It should take about 15-30 minutes if you stop to explore, or less if you work straight through.
Adapted from the Mojo Manual and the MAX GPU programming guides, part of the Modular Platform repository (github.com/modular/modular), Copyright (c) Modular Inc., licensed under the Apache License v2.0 with LLVM Exceptions. Changes were made: reformatted as an accessible XYZ web edition with build-verified example outputs. Mojo and MAX are trademarks of Modular Inc.; this edition is not affiliated with or endorsed by Modular. License: Apache-2.0 WITH LLVM-exception.