Getting Started
Your First Exercise
Walk through solving your first Rust exercise
On this page
Your First Exercise¶
Let's solve your first exercise on the platform. We'll use the Intro to Rust track to get started.
Finding an Exercise¶
- Click Learn in the navigation bar and select Intro to Rust
- You'll see a list of exercises ordered by difficulty
- Click the first exercise (e.g., "Hello World")
Alternatively, go to Learn > All Exercises and filter by the intro level.
The Exercise Page¶
Each exercise page has two main panels:
- Left panel: The exercise description with instructions, examples, and any hints
- Right panel: The code editor where you write your Rust solution
The editor comes pre-loaded with starter code including a function signature and test cases. Your job is to complete the function so all tests pass.
Writing Your Solution¶
- Read the instructions in the left panel carefully
- Write your solution in the code editor on the right
- Click Run Tests to submit your code for validation
- The platform compiles your code and runs the tests
- Results appear below the editor showing pass/fail status and compiler output
Keep the Tests
Don't modify the test section at the bottom of the editor. The platform verifies test integrity before running your code.
After Solving¶
When your tests pass:
- You earn points based on the exercise difficulty
- Your score and belt progress update automatically
- You can view the model solution for comparison
Don't worry if you don't get it right the first time. You can submit as many times as you need. Each exercise also saves your last submission so you can pick up where you left off.