trying to use if else in a list comprehension expected output is (23.0,23.3,26.0,27.0,0) have tried converting the values to float before diving it with ten but still not worki
temps= (230,233,260,270,-999)
new_temps=((temp)/10 if temp != -999 else 0 for temp in temps)
print(new_temps)
the error I get is <generator object at 0x0000021889021040>