! = "temp":
temperature.append(row[1])
print (temperature)
How and why dose it removes the word "temp" from the lists? I didn't get it..
you are checkin the second item for all iterations. probably you should change to this if row != "temp"
Its ok. I just dont understand the logic of the if statement
an if statement does not change your data by itself. You must be messing up elsewhere, check your references
The if checks that the row doesn't contain the word temp, so that line is skipped
Обсуждают сегодня