Entering edit mode
9.6 years ago
Renesh
★
2.2k
For the following code in python, I am getting the error--AttributeError: 'str' object has no attribute 'next'
InFile = open(GffFile, 'rU')
i = 1
for line in InFile:
print line
if line.startswith("#"):
line.next()
Where is the error in code?
Please help me to solve issue.
Thanks a lot. This works!!!