This can be written:

```python
    n_samples, n_features = X.shape
```