how to loop the length of an array pytoh

#include <iostream>

int main() {
    int myArray[] = {1, 2, 3, 4, 5};
    int arrayLength = sizeof(myArray) / sizeof(myArray[0]);

    for (int i = 0; i < arrayLength; ++i) {
        // Your code here, using myArray[i] as the current element
    }

    return 0;
}