SyntaxFix
Write A Post
Hire A Developer
Questions
The problem is that readlines is a list of strings, each of which is a line of filename. Perhaps you meant:
readlines
filename
for line in readlines: Type = line.split(",") x = Type[1] y = Type[2] print(x,y)