You can read the task, take hints and check your answer — but nothing is saved. No XP, no skill points, and this task will not be marked complete.
This loop never ends. Rewrite it so it stops as soon as it finds the first negative number and returns its index, or `-1` if none exists.
```
def first_negative(nums):
i = 0
while True:
if nums[i] < 0:
return i
```
What this proves: Recognise unbounded loops and missing terminal cases.
Need assistance? You can reveal sequential hints. Each hint applies a minor penalty to your score.
If you are completely stuck, you can unlock the full step-by-step walkthrough.