SyntaxFix
Write A Post
Hire A Developer
Questions
The print() function returns None. You are trying to index None. You can not, because 'NoneType' object is not subscriptable.
print()
None
'NoneType' object is not subscriptable
Put the [0] inside the brackets. Now you're printing everything, and not just the first term.
[0]