SyntaxFix
Write A Post
Hire A Developer
Questions
You can use _ _getitem__(key) function.
>>> iterable = ('A', 'B', 'C', 'D', 'E') >>> key = 4 >>> iterable.__getitem__(key) 'E'