AI assistant explains errors and suggests solutions — you learn faster
On line 2 you're iterating by index — that's not idiomatic Python.
Use enumerate(nums) to get both the index and value at once.
Solve tasks that top companies actually ask in interviews

Get a certificate after solving 50+ tasks successfully
