I have a text file:
30.154852145,-85.264584254
15.2685169645,58.59854265854
...
I have the following python script:
count = 0
while True:
count += 1
print 'val:',count
for line in open('coords.txt'):
c1, c2 = map(float, line.split(','))
break
print 'c1:',c1
if count == 2: break
I want c1 = 15.2685169645 for val: 2. Can someone please tell me what I am messing up on?