Programming Languages – All Resources

This page is the central place for learning the most popular programming languages used on this site. All resources are organized so that students can easily find lessons, examples, projects, exercises and advanced materials. Whether you are just starting or want to improve what you already know – here you will find all the basic and advanced content for several programming languages.

Programming languages covered

  • C – basics, loops, selection, functions, arrays, exercises
  • C++ – classes, objects, STL, pointers, examples and tasks
  • Java – basics, objects, working with classes, mini projects and simulations
  • Python – basics, working with files, mini applications and an introduction to Django
  • Processing – graphics, animations, mini games and simulations
  • Arduino – working with sensors, basic projects and electronics
  • micro:bit – beginner programs, the LED matrix, sensors and tasks

Types of resources

  • Basic lessons and explanations
  • Short and extended examples
  • Solved tasks
  • Mini projects for practice
  • Advanced topics (OOP, STL, recursion, working with files…)
  • Comparing languages and specific techniques

Examples in different languages

C – adding numbers:


#include <stdio.h>

int main() {
    int a = 5, b = 7;
    printf("The sum is %d", a + b);
    return 0;
}

C++ – a class and a method:


#include <iostream>
using namespace std;

class Student {
public:
    string name;
    int age;
    void introduce() {
        cout << "I am " << name << ", I am "
             << age << " years old." << endl;
    }
};

int main() {
    Student s = {"Mila", 17};
    s.introduce();
    return 0;
}

Python – a list and a loop:


numbers = [2, 4, 6, 8]

for x in numbers:
    print("Number:", x)

Java – a simple class:


class Greeting {
    public static void main(String[] args) {
        System.out.println("Hello, world!");
    }
}

Arduino – turning an LED on:


void setup() {
    pinMode(13, OUTPUT);
}

void loop() {
    digitalWrite(13, HIGH);
    delay(500);
    digitalWrite(13, LOW);
    delay(500);
}

micro:bit – showing a heart:


from microbit import *

while True:
    display.show(Image.HEART)
    sleep(600)
    display.clear()
    sleep(300)

Further learning

Detailed lessons, exercises and examples for each language are available in the corresponding sections of the site. We recommend starting with the basics and then moving on to more advanced topics and projects.