How do I fix a tuple in list error
So I have this bit of code:
Points = [ [400,100],[600,100],[800,100] ,
[300,300],[400,300],[500,300],[600,300] ,
[200,500],[400,500],[600,500],[800,500],[1000,500] ,
[300,700],[500,700][700,700][900,700] , [200,900],[400,900],[600,900] ]
And it produces this Error:
line 43, in <module>
Points = [ [400,100],[600,100],[800,100] ,
[300,300],[400,300],[500,300],[600,300] ,
[200,500],[400,500],[600,500],[800,500],[1000,500] ,
[300,700],[500,700][700,700][900,700] , [200,900],[400,900],[600,900]
]
TypeError: list indices must be integers, not tuple
What can I do to fix it?
No comments:
Post a Comment