 Étant donné cet extrait de code, identifiez et corrigez le bogue.
 ```python\nnums = [4, 8, 9, 15]\nfor num in range(1, nums):\n print(num)\n```
```python\nnums = [4, 8, 9, 15]\nfor num in nums:\n print(num)\n```