Again, I'd use a one-line list comprehension instead of these three lines to create the `apertures` list.
If you prefer keeping this I think you have to add the secondary prompt `...` like this for copy & pasting to work in IPython, no?
```python
>>> for index in range(len(r)):
...    apertures.append([photutils.CircularAperture(r[index])] * len(xc))
```