You can write blocks of code that will be properly syntax highlighted according to the language set on the tag.
import os
os.listdir(".")
For code blocks, you don’t have to limit yourself to Python. You can also document C/C++ code:
#include <iostream>
using namespace std;
int main () {
cout << "hello, world!" << end;
}