SyntaxFix
Write A Post
Hire A Developer
Questions
Probably one of the indexes is wrong, either the inner one or the outer one.
I suspect you mean to say [0] where you say [1] and [1] where you say [2]. Indexes are 0-based in Python.
[0]
[1]
[2]