This is an interactive course. If you want to learn Rust, you need to follow along with the exercises. Just reading through will not be enough.

Educative provides the ability to run code samples inline. We will provide example prompts for working with these exercises. Please make sure you understand how they work and are able to complete the exercises before moving on!

In addition to completing the inline exercise prompts, it’s a good idea to practice typing full Rust programs from scratch. Is this method slower? Yes. But it will train you to get comfortable with Rust. Especially for new programmers, you’ll want to get used to all the weird characters we use, like { and ;. That way, when we get to the more complicated stuff in this course, you won’t be thinking about typing. You’ll be thinking about the hard stuff.

There will be some parts of this course that will be pretty easy for an existing programmer. Boolean logic, for example, is probably something you don’t need much of a refresher on. Feel free to skim through those sections. We won’t hold it against you. You may still find it useful to do all of the exercises, though, just to get comfortable with the syntax.

Finally, you should explore. If you have an idea, and you’re curious if it will work, try it and see what happens! You can’t break anything. The worst that could happen is that you’ll get a confusing message.

Press + to interact
fn main() {
println!("Hello, world!");