You can switch the map into a tuple or list first. To do that,
print(list(F_temps))
The reason is, it will take time to evaluate, which means the values are only computed on-demand.
For example:
def evaluate(x):
print(x)
mymap = map(evaluate, [1,2,3]) # nothing gets printed yet
print(mymap) # <map object at 0x106ea0f10>
# calling next evaluates the next value in the map
next(mymap) # prints 1
next(mymap) # prints 2
next(mymap) # prints 3
next(mymap) # raises the StopIteration error
Here, the loop will automatically call next when you use the map in a for a loop. It also treats the StopIteration error as the end of the loop. When you call list(mymap), it forces all the map values to be evaluated
result = list(mymap) # prints 1, 2, 3
Since the evaluate function doesn't have any return value, the result would be [None,None,None]
Interested to learn more on Python topics? Come & Join: Python course