For a file contains two strings: True and 26. When I use readlines to get those strings:
a, b = file.readlines()\[1\].split()
print(a, b)
\# True 26
the result is two strings: True and 26. However, when I just want to get the string '26' and added another line after them:
a, b = file.readlines()\[1\].split()
print(a, b)
\# True 26
c = file.readlines()\[1\].split()\[1\]
\# IndexError: list index out of range
a index error occurs. I do not understand why this happens.
The result should be 26, so how to debug that?