Python arrays

Is this an exam question?

If not, please follow these guidelines when asking a question: