Re: [Tutor] trying to generate change in print output

2010-11-07 Thread Alan Gauld
"Terry Green" wrote 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 no ma

Re: [Tutor] trying to generate change in print output

2010-11-07 Thread Steven D'Aprano
Terry Green wrote: Am stumped, when I use this code: race=int(row[2]) raceChek=1 This causes IndentationError: unexpected indent. if raceChek == race: print ('raceChek ', raceChek, 'race ', race) else: print ('raceChek ', raceChek,' no match ', 'race ', race); raceChek = race

[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