Skip to content

Learn to thinkin code.

Learn programming through short lessons, worked examples, and algorithm problems.

Choose where to start

01

I am new to coding

Start with Python, input, conditions, and loops.

Start with Python
02

I can write basic programs

Learn core data structures and algorithms.

Learn algorithms
03

I already solve algorithm problems

Browse problems by topic and difficulty.

Explore the archive

A lesson, an example, then your turn

See what you will learn

All learning paths

Inside AltoCode

Learn. Solve. Submit. Improve.

Output and valuesProgramming Foundations with Python

Learn

Read a short explanation and work through an example.

#1409A + B
2 35

Solve

Try a real problem with sample input and output.

main.pyprint(a + b)Automatic judging

Submit

Send your code. The judge runs it against the problem's tests.

AcceptedThe solution passes the example problem's tests.Demo

Improve

Use the verdict to revise your solution, then continue with the next problem.

Submit inC++20C++23C11Python 3PyPy3Java 11Java 21Kotlin (JVM)RustGoJavaScript (Node.js)Language details

More ways to practise

Compete

Teach and create

Use classes for assignments, author problems and contests, or translate problems into another language. Creation tools follow account permissions.

People building and solving

Community

Archive leaders

  1. 01_junick_junick714
  2. 02LLka09300
  3. 03NNuclearPlane787268
  4. 04PoLitu_72PoLitu_72194
  5. 05Ttwilit190
View rankings

Recent contributions

Every concept ends in code you can submit.

Start with one lesson. Put it into practice.