KevsRobots Learning Platform
30% Percent Complete
By Kevin McAleer, 1 Minute
MicroPython is easier to write, cleaner and clearer to read, and faster to get the results you want, than other languages such as C++.
Compare these two examples below.
First is a piece of code written for the Arduino
in C++
:
#include <iostream>
void main() {
std::cout << "hello world";
}
The second piece of code is written in MicroPython
:
print(“hello world)
As you can see, the MicroPython code is simpler, easier to read, shorter and faster to write.
You can use the arrows ← →
on your keyboard to navigate between lessons.