[Tutor] trying to generate change in print output

2010-11-07 Thread Terry Green
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

[Tutor] Stumped Again

2010-10-30 Thread Terry Green
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 __

[Tutor] (no subject)

2010-10-28 Thread 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. **

[Tutor] Syntax Error Messages

2010-10-22 Thread Terry Green
.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