Convert this code from Java to Python.
public static void main(String[] args) {
    int i;
    for (i = 0; i < 5; i++) {
        System.out.println("Hello world!");
    }
}
for i in range(5):
    print("Hello world!")