Practice Rust

Beta

Learn Rust by practicing, choose from a variety of coding exercises and challenges to help you improve your Rust programming skills.

Hello, World

Write a simple function that returns the string 'Hello, World!' in Rust.

Beginner

Character counting string

Write a program that takes a string as input and counts the number of characters in the string.

Beginner

Mathematical operations

Practice mathematical operations in Rust, including addition, subtraction, multiplication, and division.

Beginner

Fizz Buzz

Write a program that prints 'Fizz' for multiples of three, 'Buzz' for multiples of five, and 'FizzBuzz' for multiples of both.

Easy

Fibonacci

Write a function that returns the nth number in the Fibonacci sequence.

Easy

The From trait

Implement the From trait for a custom type.

Medium

Animal sanctuary registry

Create a program that manages a registry of animals in a sanctuary.

Medium

Median and mode

Write a program that calculates the median and mode of a list of numbers.

Medium

Graceful error handling

Implement graceful error handling in Rust using the Result type.

Easy

New Challenges Coming Soon! Sign up for our newsletter to get updates.

Get updated on the latest courses, features, tools, resources about Rust, and more!

Rustfinity.com

Links

  1. Home
  2. Learn Rust
  3. Get Started
  4. Practice Rust
  5. Challenges

Socials

  1. GitHub
  2. X

Legal

  1. Privacy Policy
  2. Terms of Service