Getting columns from NumPy arrays

Which of the following expressions will return the first three columns of the numpy array, arr?

This exercise is part of the course

Python for MATLAB Users

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise