Am stumped, when I use this code:
race=int(row[2])
raceChek=1
if raceChek == race: print ('raceChek ', raceChek, 'race ', race)
else: print ('raceChek ', raceChek,' no match ', 'race ', race);
raceChek = race
I Get this:
raceChek 1 race 1
raceChek 1 race 1
t
(track,race,postPos,horseName,jockey,jockeyWins,jockeySts,jockeyPct)
testOutput.writerow((track,race,postPos,horseName,jockey,jockeyWins,jockeySt
s,jockeyPct,'\n'))
testOutput.close()
csvreader.close()
Please Help!
Terry Green
__
],postPos)
close = f
When I run the above script, the field postPos doesn't match the input!
postPost should be the same as words[3]
can't guess why?
any help?
*** Python 3.1.2 (r312:79149, Mar 21 2010, 00:41:52) [MSC v.1500 32 bit
(Intel)] on win32. **
.Error, e:
sys.exit('file %s, line %d: %s' % (filename, reader.line_num, e))
thanks,
Terry Green
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor