SyntaxFix
Write A Post
Hire A Developer
Questions
for x in y[:-1]
If y is a generator, then the above will not work.
y