```python
for course_id in entry.get('value', {}).get('target', []):
   ...
```