contents are in list[info] from a text file:
1,1,1703,385,157,339,1,-1,-1,-1
1,3,1293,455,83,213,1,-1,-1,-1
1,4,259,449,101,261,1,-1,-1,-1
1,5,1253,529,55,127,1,-1,-1,-1
2,1,1699,383,159,341,1,-1,-1,-1
2,3,1293,455,83,213,1,-1,-1,-1
2,4,261,447,101,263,1,-1,-1,-1
2,5,1253,529,55,127,1,-1,-1,-1
3,1,1697,383,159,343,1,-1,-1,-1
3,3,1293,455,83,213,1,-1,-1,-1
3,4,263,447,101,263,1,-1,-1,-1
3,5,1255,529,55,127,1,-1,-1,-1
4,1,1695,383,159,343,1,-1,-1,-1
4,3,1293,455,83,213,1,-1,-1,-1
4,4,265,447,101,263,1,-1,-1,-1
4,5,1257,529,55,127,1,-1,-1,-1
.
.
.
they consist of like these
I am going to show some pictures. so I think that you don't have to care about image_list and files. anyway, I want to read like these:
conclusion = if info[0] is 1, i want to read info[2], info[3], info[4] info[5] of lines that they starts as info[0] is 1.
in other words,
if info[0] is 1, I want to print like below
1703,385,157,339
1293,455,83,213
259,449,101,261
1253,529,55,127
at the same time
my code is below:
**marks = [int(info[0])]
for i, images_files in zip(marks, image_list):
for s in range(i, i):
print int(info[2]), int(info[3]), int(info[4]), int(info[5])**
please help me :)
for s in range(i, i)to do? There is no range of integers between two equal integers. Also, you don't referencesin the loop itself, andinfois not defined?